MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Simple Authentication Security Layer Library Functions
                                               sasldecode(3SASL)



NAME
     sasldecode - decode data received

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

     int sasldecode(saslconnt *conn, const char *input, unsigned inputlen,
          const char **output, unsigned *outputlen);


DESCRIPTION
     Use the sasldecode() interface  to  decode  data  received.
     After   authentication,  call  this  function  on  all  data
     received. The data is decoded from encrypted or signed  form
     to  plain data. If no security lay is negotiated, the output
     is identical to the input.


     Do not give sasldecode() more data than the negotiated max-
     bufsize. See saslgetprop(3SASL).


     sasldecode() can complete successfully although  the  value
     of  outputlen  is  zero.  If this is the case, wait for more
     data and call sasldecode() again.

PARAMETERS
     conn         The SASL connection context.


     input        Data received.


     inputlen     The length of input


     output       The decoded data. output must be  allocated  or
                  freed by the library.


     outputlen    The length of output.


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

ERORS
     SASLOK    The call to sasldecode() was successful.




SunOS 5.11          Last change: 28 Aug 2003                    1






Simple Authentication Security Layer Library Functions
                                               sasldecode(3SASL)



     See saslerrors(3SASL) for information on SASL error codes.

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



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


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

































SunOS 5.11          Last change: 28 Aug 2003                    2






Simple Authentication Security Layer Library Functions
                                               sasldecode(3SASL)






















































SunOS 5.11          Last change: 28 Aug 2003                    3






OpenSolaris man pages main menu

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