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_GETPROP 3SASL "Oct 14, 2003"
10 sasl_getprop \- get a SASL property
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_getprop\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBint\fR \fIpropnum\fR, \fBconst void **\fR\fIpvalue\fR);
23 Use the \fBsasl_getprop()\fR interface to get the value of a SASL property. For
24 example, after successful authentication, a server may want to know the
25 authorization name. Similarly, a client application may want to know the
26 strength of the security level that was negotiated.
34 The SASL connection context.
43 The identifier for the property requested.
52 The value of the SASL property. This value is filled in upon a successful call.
53 Possible SASL values include:
57 \fB\fBSASL_USERNAME\fR\fR
60 A pointer to a null-terminated user name.
69 The security layer security strength factor. If the value of \fBSASL_SSF\fR is
70 0, a call to \fBsasl_encode()\fR or \fBsasl_decode()\fR is unnecessary.
76 \fB\fBSASL_MAXOUTBUF\fR\fR
79 The maximum size of output buffer returned by the selected security mechanism
85 \fB\fBSASL_DEFUSERREALM\fR\fR
88 Server authentication realm used.
94 \fB\fBSASL_GETOPTCTX\fR\fR
97 The context for \fBgetopt()\fR callback.
103 \fB\fBSASL_IPLOCALPORT\fR\fR
106 Local address string.
112 \fB\fBSASL_IPREMOTEPORT\fR\fR
115 Remote address string.
121 \fB\fBSASL_SERVICE\fR\fR
124 Service passed on to \fBsasl_*_new()\fR.
130 \fB\fBSASL_SERVERFQDN\fR\fR
133 Server FQDN passed on to \fBsasl_*_new()\fR.
139 \fB\fBSASL_AUTHSOURCE\fR\fR
142 Name of authentication source last used. Useful for failed authentication
149 \fB\fBSASL_MECHNAME\fR\fR
152 Active mechanism name, if any.
158 \fB\fBSASL_PLUGERR\fR\fR
161 Similar to \fBsasl_errdetail()\fR.
173 The call to \fBsasl_getprop()\fR was successful.
178 See \fBsasl_errors\fR(3SASL) for information on SASL error codes.
182 See \fBattributes\fR(5) for descriptions of the following attributes:
190 ATTRIBUTE TYPE ATTRIBUTE VALUE
192 Interface Stability Evolving
200 \fBsasl_errors\fR(3SASL), \fBattributes\fR(5)