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_CLIENT_NEW 3SASL "Aug 27, 2003"
10 sasl_client_new \- create a new client authentication object
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_client_new\fR(\fBconst char *\fR\fIservice\fR, \fBconst char *\fR\fIserverFQDN\fR,
18 \fBconst char *\fR\fIiplocalport\fR, \fBconst char *\fR\fIipremoteport\fR,
19 \fBconst sasl_callback_t *\fR\fIprompt_supp\fR, \fBunsigned\fR \fIflags\fR,
20 \fBsasl_conn_t **\fR\fIpconn\fR);
26 Use the \fBsasl_client_new()\fR interface to create a new SASL context. This
27 SASL context will be used for all SASL calls for one connection. The context
28 handles both authentication and the integrity and encryption layers after
37 The registered name of the service that uses SASL, usually the protocol name,
44 \fB\fIserverFQDN\fR\fR
47 The fully qualified domain name of the server, for example, serverhost.cmu.edu.
53 \fB\fIiplocalport\fR\fR
58 The IP and port of the local side of the connection, or \fINULL\fR. If
59 \fIiplocalport\fR is \fINULL\fR, mechanisms that require IP address information
60 are disabled. The \fIiplocalport\fR string must be in one of the following
66 \fBa.b.c.d:port\fR (IPv6)
72 \fB[e:f:g:h:i:j:k:l]:port\fR (IPv6)
78 \fB[e:f:g:h:i:j:a.b.c.d]:port\fR (IPv6)
84 \fBa.b.c.d;port\fR (IPv4)
90 \fBe:f:g:h:i:j:k:l;port\fR (IPv6)
96 \fBe:f:g:h:i:j:a.b.c.d;port\fR (IPv6)
103 \fB\fIipremoteport\fR\fR
106 The IP and port of the remote side of the connection, or \fINULL\fR.
112 \fB\fIprompt_supp\fR\fR
115 A list of the client interactions supported that are unique to this connection.
116 If this parameter is \fINULL\fR, the global callbacks specified in
117 \fBsasl_client_init\fR(3SASL) are used.
126 Usage flags. For clients, the flag \fBSASL_NEED_PROXY\fR is available.
135 The connection context allocated by the library. The \fIpconn\fR structure is
136 used for all future SASL calls for this connection.
142 \fBsasl_client_new()\fR returns an integer that corresponds to a SASL error
151 The call to \fBsasl_client_new()\fR was successful.
157 \fB\fBSASL_NOMECH\fR\fR
160 No mechanishm meets the requested properties.
166 \fB\fBSASL_BADPARAM\fR\fR
169 There is an error in the configuration file or passed parameters.
175 \fB\fBSASL_NOMEM\fR\fR
178 There is not enough memory to complete the operation.
183 All other error codes indicate an error situation that must be handled, or the
184 authentication session should be quit. See \fBsasl_errors\fR(3SASL) for
185 information on SASL error codes.
189 See \fBattributes\fR(5) for descriptions of the following attributes:
197 ATTRIBUTE TYPE ATTRIBUTE VALUE
199 Interface Stability Evolving
207 \fBsasl_client_init\fR(3SASL), \fBsasl_errors\fR(3SASL), \fBattributes\fR(5)