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_SETERROR 3SASL "Oct 14, 2003"
10 sasl_seterror \- set the error string
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBvoid\fR \fBsasl_seterror\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBunsigned\fR \fIflags\fR,
18 \fBconst char *\fR\fIfmt\fR, ...);
24 The \fBsasl_seterror()\fR interface sets the error string that will be returned
25 by \fBsasl_errdetail\fR(3SASL). Use \fBsyslog\fR(3C) style formatting, that is,
26 use \fBprintf()\fR\(emstyle with \fB%m\fR as the most recent \fBerrno\fR error.
29 The \fBsasl_seterror()\fR interface is primarily used by server callback
30 functions and internal plug-ins, for example, with the \fBsasl_authorize_t\fR
31 callback. The \fBsasl_seterror()\fR interface triggers a call to the SASL
32 logging callback, if any, with a level of \fBSASL_LOG_FAIL\fR, unless the
33 \fBSASL_NOLOG\fR flag is set.
36 Make the message string sensitive to the current language setting. If there is
37 no \fBSASL_CB_LANGUAGE\fR callback, message strings must be \fBi-default\fR.
38 Otherwise, UTF-8 is used. Use of \fIRFC 2482\fR for mixed-language text is
42 If the value of \fIconn\fR is \fINULL\fR, the \fBsasl_seterror()\fR interface
51 The \fBsasl_conn_t\fR for which the call to \fBsasl_seterror()\fR applies.
60 If set to \fBSASL_NOLOG\fR, the call to \fBsasl_seterror()\fR is not logged.
69 A \fBsyslog\fR(3C) style format string.
75 \fBsasl_seterror()\fR has no return values.
79 See \fBattributes\fR(5) for descriptions of the following attributes:
87 ATTRIBUTE TYPE ATTRIBUTE VALUE
89 Interface Stability Evolving
97 \fBsasl_errdetail\fR(3SASL), \fBsyslog\fR(3C), \fBattributes\fR(5)
100 Whistler, K. and Adams, G. \fIRFC 2482, Language Tagging in Unicode Plain
101 Text\fR. Network Working Group. January 1999.