MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Simple Authentication Security Layer Library Functions
                                             saslencode64(3SASL)



NAME
     saslencode64 - encode base64 string

SYNOPSIS
     cc [ flag ... ] file ... -lsasl   [ library ... ]
     #include 

     int saslencode64(const char *in, unsigned inlen, char *out,
          unsigned outmax, unsigned *outlen);


DESCRIPTION
     Use the saslencode64() interface to convert an octet string
     into  a  base64 string. This routine is useful for SASL pro-
     files that use base64, such as  the  IMAP  (IMAP4)  and  POP
     (POPAUTH)  profiles.  The  output  is  null-terminated.  If
     outlen is non-NUL, the length is placed in the outlen.

PARAMETERS
     in        Input data.


     inlen     The length of the input data.


     out       The output data. The value of out can be the  same
               as in. However, there must be enough space.


     outlen    The length of the actual output.


     outmax    The maximum size of the output buffer.


RETURN VALUES
     saslencode64() returns an integer  that  corresponds  to  a
     SASL error code.

ERORS
     SASLOK         The call to saslencode64() was successful.


     SASLBUFOVER    The output buffer was too small.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:





SunOS 5.11          Last change: 16 Sep 2003                    1






Simple Authentication Security Layer Library Functions
                                             saslencode64(3SASL)




           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Availability                 SUNWlibsasl                 
    
     Interface Stability          Evolving                    
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     saslerrors(3SASL), attributes(5)









































SunOS 5.11          Last change: 16 Sep 2003                    2






Simple Authentication Security Layer Library Functions
                                             saslencode64(3SASL)






















































SunOS 5.11          Last change: 16 Sep 2003                    3






OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™