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_ERRSTRING 3SASL "Oct 14, 2003"
10 sasl_errstring \- translate a SASL return code to a human-readable form
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBconst char *\fR \fBsasl_errstring\fR(\fBint\fR \fIsaslerr\fR, \fBconst char *\fR\fIlanglist\fR,
18 \fBconst char **\fR\fIoutlang\fR);
24 The \fBsasl_errstring()\fR interface is called to convert a SASL return code
25 from an integer into a human readable string.
28 You should not used the \fBsasl_errstring()\fR interface to extract error code
29 information from SASL. Applications should use \fBsasl_errdetail\fR(3SASL)
30 instead, which contains this error information and more.
33 The \fBsasl_errstring()\fR interface supports only \fBi-default\fR and
34 \fBi-local\fR at this time.
42 The error number to be translated.
51 A comma-separated list of languages. See \fIRFC 1766\fR. If the\fIlanglist\fR
52 parameter has a\fINULL\fR value, the default language,\fBi-default\fR, is used.
61 The language actually used. The \fIoutlang\fR parameter can be \fINULL\fR. The
62 returned error string is in \fBUTF-8\fR.
68 \fBsasl_errstring()\fR returns the string that describes the error that
69 occurred, or \fINULL\fR, if there was an error retrieving it.
73 See \fBattributes\fR(5) for descriptions of the following attributes:
81 ATTRIBUTE TYPE ATTRIBUTE VALUE
83 Interface Stability Evolving
91 \fBsasl_errors\fR(3SASL), \fBsasl_seterror\fR(3SASL), \fBattributes\fR(5)
94 Alvestrand, H. \fIRFC 1766, Tags for the Identification of Languages\fR.
95 Network Working Group. November 1995.