Copyright (C) 2000-2012 |
Manpages sasl_listmechSection: Misc. Reference Manual Pages (26 March 2000)Updated: SASL Index Return to Main Contents NAMEsasl_listmech - Retrieve a list of the supported SASL mechanisms
SYNOPSIS#include <sasl.h> int sasl_listmech(sasl_conn_t *conn, const char *user, const char *prefix, const char *sep, const char *suffix, char **result, unsigned *plen, unsigned *pcount); DESCRIPTIONsasl_listmech() returns a string listing the SASL names of all the mechanisms available to the specified user. This is typically given to the client through a capability command or initial server response. Client applications need this list so that they know what mechanisms the server supports. conn the SASL context for this connection user (optional) restricts the mechanism list to only those available to the user. prefix appended to beginning of result sep appended between mechanisms suffix appended to end of result result NULL terminated result string (allocated by library) plen length of result filled in by library. May be NULL pcount Number of mechanisms available. May be NULL
Example: sasl_listmech(conn,NULL,"(",",",")",&mechlist,NULL,NULL); may give the string (ANONYMOUS,KERBEROS_V4,DIGEST-MD5) as a result RETURN VALUEsasl_server_step returns an integer which corresponds to one of the following codes. SASL_OK indicates that the authentication is complete. All other return codes indicate errors and should either be handled or the authentication session should be quit. ERRORS
CONFORMING TORFC 2222SEE ALSOothersaslstuff .BRIndexThis document was created by man2html, using the manual pages. Time: 07:08:05 GMT, April 25, 2024 |