SASL_LISTMECH(3SASL) | Simple Authentication Security Layer Library Functions | SASL_LISTMECH(3SASL) |
sasl_listmech - retrieve a list of the supported SASL mechanisms
cc [ flag ... ] file ... -lsasl [ library ... ] #include <sasl/sasl.h> int sasl_listmech(sasl_conn_t *conn, const char *user, const char *prefix,
const char *sep, const char *suffix, const char **result,
unsigned *plen,int *pcount);
The sasl_listmech() interface returns a string listing the SASL names of all the mechanisms available to the specified user. This call 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
user
prefix
sep
suffix
result
plen
pcount
sasl_listmech() returns an integer that corresponds to a SASL error code.
SASL_OK
See sasl_errors(3SASL) for information on SASL error codes.
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
MT-Level | MT-Safe |
October 14, 2003 | OmniOS |