2 .\" Copyright (C) 1998-2003, Carnegie Mellon Univeristy. All Rights Reserved.
3 .\" Portions Copyright (C) 2003, Sun Microsystems,
4 .\" Inc. All Rights Reserved
5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
8 .TH SASL_LISTMECH 3SASL "Oct 14, 2003"
10 sasl_listmech \- retrieve a list of the supported SASL mechanisms
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_listmech\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBconst char *\fR\fIuser\fR, \fBconst char *\fR\fIprefix\fR,
18 \fBconst char *\fR\fIsep\fR, \fBconst char *\fR\fIsuffix\fR, \fBconst char **\fR\fIresult\fR,
19 \fBunsigned *\fR\fIplen\fR,\fBint *\fR\fIpcount\fR);
25 The \fBsasl_listmech()\fR interface returns a string listing the SASL names of
26 all the mechanisms available to the specified user. This call is typically
27 given to the client through a capability command or initial server response.
28 Client applications need this list so that they know what mechanisms the server
37 The SASL context for this connection user restricts the mechanism list to those
38 mechanisms available to the user. This parameter is optional.
47 Restricts security mechanisms to those available to that user. The value of
48 \fIuser\fR may be \fINULL\fR, and it is not used if called by the client
58 Appended to the beginning of \fIresult\fR.
67 Appended between mechanisms.
76 Appended to the end of \fIresult\fR.
85 A null-terminated result string. \fIresult\fR must be allocated or freed by the
95 The length of the result filled in by the library. The value of \fIplen\fR may
105 The number of mechanisms available. The value of \fIpcount\fR is filled in by
106 the library. The value of \fIpcount\fR may be \fINULL\fR
112 \fBsasl_listmech()\fR returns an integer that corresponds to a SASL error code.
120 The call to \fBsasl_listmech()\fR was successful.
125 See \fBsasl_errors\fR(3SASL) for information on SASL error codes.
129 See \fBattributes\fR(5) for descriptions of the following attributes:
137 ATTRIBUTE TYPE ATTRIBUTE VALUE
139 Interface Stability Evolving
147 \fBsasl_errors\fR(3SASL), \fBattributes\fR(5)