1sasl_log_t(3SSAiSmLp)le Authentication Security Layer Library Functsiaosnls_log_t(3SASL)
2
3
4

NAME

6       sasl_log_t - the SASL logging callback function
7

SYNOPSIS

9       cc [ flag ... ] file ... -lsasl   [ library ... ]
10       #include <sasl/sasl.h>
11
12       int sasl_log_t(void *context, int level, const char *message);
13
14

DESCRIPTION

16       Use  the  sasl_log_t()  function to log warning and error messages from
17       the SASL library. syslog(3C) is used, unless another  logging  function
18       is specified.
19

PARAMETERS

21       context    The logging context from the callback record.
22
23
24       level      The logging level. Possible values for level include:
25
26                  SASL_LOG_NONE     Do not log anything.
27
28
29                  SASL_LOG_ERR      Log  unusual  errors.  This is the default
30                                    log level.
31
32
33                  SASL_LOG_FAIL     Log all authentication failures.
34
35
36                  SASL_LOG_WARN     Log non-fatal warnings.
37
38
39                  SASL_LOG_NOTE     Log non-fatal warnings (more verbose  than
40                                    SASL_LOG_WARN).
41
42
43                  SASL_LOG_DEBUG    Log  non-fatal warnings (more verbose than
44                                    SASL_LOG_NOTE).
45
46
47                  SASL_LOG_TRACE    Log traces of internal protocols.
48
49
50                  SASL_LOG_PASS     Log traces of internal protocols,  includ‐
51                                    ing passwords.
52
53
54
55       message    The message to log
56
57

RETURN VALUES

59       Like  other  SASL  callback  functions, sasl_log_t() returns an integer
60       that corresponds to a SASL error code. See <sasl.h> for a complete list
61       of SASL error codes.
62

ERRORS

64       SASL_OK    The call to sasl_log_t() was successful.
65
66
67
68       See sasl_errors(3SASL) for information on SASL error codes.
69

ATTRIBUTES

71       See attributes(5) for descriptions of the following attributes:
72
73
74
75
76       ┌─────────────────────────────┬─────────────────────────────┐
77       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
78       ├─────────────────────────────┼─────────────────────────────┤
79       │Availability                 │SUNWlibsasl                  │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │Interface Stability          │Evolving                     │
82       ├─────────────────────────────┼─────────────────────────────┤
83       │MT-Level                     │MT-Safe                      │
84       └─────────────────────────────┴─────────────────────────────┘
85

SEE ALSO

87       sasl_errors(3SASL), syslog(3C), attributes(5)
88
89
90
91SunOS 5.11                        27 Oct 2003                sasl_log_t(3SASL)
Impressum