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_SETPROP 3SASL "Oct 14, 2003"
10 sasl_setprop \- set a SASL property
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_setprop\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBint\fR \fIpropnum\fR, \fBconst void *\fR\fIpvalue\fR);
23 Use the \fBsasl_setprop()\fR interface to set the value of a SASL property. For
24 example, an application can use \fBsasl_setprop()\fR to tell the SASL liabrary
25 about any external negotiated security layer like TLS.
28 \fBsasl_setprop()\fR uses the following flags.
32 \fB\fBSASL_AUTH_EXTERNAL\fR\fR
35 External authentication ID that is a pointer of type \fBconst char\fR
41 \fB\fBSASL_SSF_EXTERNAL\fR\fR
44 External SSF active of type \fBsasl_ssf_t\fR
50 \fB\fBSASL_DEFUSERREALM\fR\fR
53 User realm that is a pointer of type \fBconst char\fR
59 \fB\fBSASL_SEC_PROPS\fR\fR
62 \fBsasl_security_properties_t\fR, that can be freed after the call
68 \fB\fBSASL_IPLOCALPORT\fR\fR
71 A string that describes the local ip and port in the form \fBa.b.c.d:p\fR or
72 \fB[e:f:g:h:i:j:k:l]:port\fR or one of the older forms, \fBa.b.c.d;p\fR or
73 \fBe:f:g:j:i:j:k:l;port\fR
79 \fB\fBSASL_IPREMOTEPORT\fR\fR
82 A string that describes the remote ip and port in the form \fBa.b.c.d:p\fR or
83 \fB[e:f:g:h:i:j:k:l]:port\fR or one of the older forms, \fBa.b.c.d;p\fR or
84 \fBe:f:g:j:i:j:k:l;port\fR
94 The SASL connection context
103 The identifier for the property requested
112 Contains a pointer to the data. The application must ensure that the data type
113 is correct, or the application can crash.
119 \fBsasl_setprop()\fR returns an integer that corresponds to a SASL error code.
127 The call to \fBsasl_setprop()\fR was successful.
132 See \fBsasl_errors\fR(3SASL) for information on SASL error codes.
136 See \fBattributes\fR(5) for descriptions of the following attributes:
144 ATTRIBUTE TYPE ATTRIBUTE VALUE
146 Interface Stability Evolving
154 \fBsasl_errors\fR(3SASL), \fBattributes\fR(5)