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_ENCODE 3SASL "Oct 22, 2003"
10 sasl_encode, sasl_encodev \- encode data for transport to an authenticated host
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_encode\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBconst char *\fR\fIinput\fR, \fBunsigned\fR \fIinputlen\fR,
18 \fBconst char **\fR\fIoutput\fR, \fBunsigned *\fR\fIoutputlen\fR);
23 \fBint\fR \fBsasl_encodev\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBconst struct iovec *\fR\fIinvec\fR,
24 \fBunsigned\fR \fInumiov\fR, \fBconst char *\fR\fIoutputlen\fR);
30 The \fBsasl_encode()\fR interface encodes data to be sent to a remote host for
31 which there has been a successful authentication session. If there is a
32 negotiated security, the data is signed or encrypted, and the output is sent
33 without modification to the remote host. If there is no security layer, the
34 output is identical to the input.
37 The \fBsasl_encodev()\fR interface functions the same as the
38 \fBsasl_encode()\fR interface, but operates on a \fBstruct iovec\fR instead of
47 The SASL connection context.
74 The encoded data. \fIoutput\fR must be allocated or freed by the library.
83 The length of \fIoutput\fR.
92 A pointer to set of \fBiovec\fR structures.
101 The number of \fBiovec\fR structures in the \fIinvec\fR set.
107 \fBsasl_encode()\fR returns an integer that corresponds to a SASL error code.
115 The call to \fBsasl_encode()\fR or \fBsasl_encodev()\fRwas successful.
120 See \fBsasl_errors\fR(3SASL) for information on SASL error codes.
124 See \fBattributes\fR(5) for descriptions of the following attributes:
132 ATTRIBUTE TYPE ATTRIBUTE VALUE
134 Interface Stability Evolving