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_LOG_T 3SASL "Oct 27, 2003"
10 sasl_log_t \- the SASL logging callback function
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_log_t\fR(\fBvoid *\fR\fIcontext\fR, \fBint\fR \fIlevel\fR, \fBconst char *\fR\fImessage\fR);
23 Use the \fBsasl_log_t()\fR function to log warning and error messages from the
24 SASL library. \fBsyslog\fR(3C) is used, unless another logging function is
33 The logging context from the callback record.
42 The logging level. Possible values for \fIlevel\fR include:
46 \fB\fBSASL_LOG_NONE\fR\fR
55 \fB\fBSASL_LOG_ERR\fR\fR
58 Log unusual errors. This is the default log level.
64 \fB\fBSASL_LOG_FAIL\fR\fR
67 Log all authentication failures.
73 \fB\fBSASL_LOG_WARN\fR\fR
76 Log non-fatal warnings.
82 \fB\fBSASL_LOG_NOTE\fR\fR
85 Log non-fatal warnings (more verbose than \fBSASL_LOG_WARN\fR).
91 \fB\fBSASL_LOG_DEBUG\fR\fR
94 Log non-fatal warnings (more verbose than \fBSASL_LOG_NOTE\fR).
100 \fB\fBSASL_LOG_TRACE\fR\fR
103 Log traces of internal protocols.
109 \fB\fBSASL_LOG_PASS\fR\fR
112 Log traces of internal protocols, including passwords.
129 Like other SASL callback functions, \fBsasl_log_t()\fR returns an integer that
130 corresponds to a SASL error code. See <\fBsasl.h\fR> for a complete list of
139 The call to \fBsasl_log_t()\fR was successful.
144 See \fBsasl_errors\fR(3SASL) for information on SASL error codes.
148 See \fBattributes\fR(5) for descriptions of the following attributes:
156 ATTRIBUTE TYPE ATTRIBUTE VALUE
158 Interface Stability Evolving
166 \fBsasl_errors\fR(3SASL), \fBsyslog\fR(3C), \fBattributes\fR(5)