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_SERVER_START 3SASL "Oct 1, 2003"
10 sasl_server_start \- create a new server authentication object
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_server_start\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBconst char *\fR\fImech\fR,
18 \fBconst char *\fR\fIclientin\fR,\ \fBunsigned *\fR\fIclientinlen\fR,
19 \fBconst char **\fR\fIserverout\fR, \fBunsigned *\fR\fIserveroutlen\fR);
25 The \fBsasl_server_start()\fR interface begins the authentication with the
26 mechanism specified by the \fImech\fR parameter. \fBsasl_server_start()\fR
27 fails if the mechanism is not supported.
35 The SASL context for this connection.
44 The mechanism name that the client requested.
53 The initial response from the client. The value of \fIclientin\fR is \fINULL\fR
54 if the protocol lacks support for the client-send-first or if the other end did
55 not have an initial send. No initial client send is distinct from an initial
56 send of a null string. The protocol must account for this difference.
62 \fB\fIclientinlen\fR\fR
65 The length of the initial response.
74 Created by the plugin library. The value of \fIserverout\fR is the initial
75 server response to send to the client. \fIserverout\fR is allocated or freed by
76 the library. It is the job of the client to send it over the network to the
77 server. Protocol specific encoding, for example \fBbase64\fR encoding, must be
84 \fB\fIserveroutlen\fR\fR
87 The length of the initial server challenge.
93 \fBsasl_server_start()\fR returns an integer that corresponds to a SASL error
102 Authentication completed successfully.
108 \fB\fBSASL_CONTINUE\fR\fR
111 The call to \fBsasl_server_start()\fR was successful, and more steps are needed
112 in the authentication.
117 All other error codes indicate an error situation that must be handled, or the
118 authentication session should be quit. See \fBsasl_errors\fR(3SASL) for
119 information on SASL error codes.
123 See \fBattributes\fR(5) for descriptions of the following attributes:
131 ATTRIBUTE TYPE ATTRIBUTE VALUE
133 Interface Stability Evolving
141 \fBgethostname\fR(3C), \fBsasl_errors\fR(3SASL), \fBattributes\fR(5)