1sasl_errstrinSgi(m3pSlAeSLA)uthentication Security Layer Library Fsuansclt_ieornrsstring(3SASL)
2
3
4

NAME

6       sasl_errstring - translate a SASL return code to a human-readable form
7

SYNOPSIS

9       cc [ flag ... ] file ... -lsasl   [ library ... ]
10       #include <sasl/sasl.h>
11
12       const char * sasl_errstring(int saslerr, const char *langlist,
13            const char **outlang);
14
15

DESCRIPTION

17       The  sasl_errstring() interface is called to convert a SASL return code
18       from an integer into a human readable string.
19
20
21       You should not used the sasl_errstring()  interface  to  extract  error
22       code   information  from  SASL.  Applications  should  use  sasl_errde‐
23       tail(3SASL) instead, which contains this error information and more.
24
25
26       The sasl_errstring() interface supports only i-default and  i-local  at
27       this time.
28

PARAMETERS

30       saslerr     The error number to be translated.
31
32
33       langlist    A  comma-separated list of languages. See RFC 1766. If the‐
34                   langlist parameter has aNULL value, the default language,i-
35                   default, is used.
36
37
38       outlang     The  language  actually  used. The outlang parameter can be
39                   NULL. The returned error string is in UTF-8.
40
41

RETURN VALUES

43       sasl_errstring() returns the  string  that  describes  the  error  that
44       occurred, or NULL, if there was an error retrieving it.
45

ATTRIBUTES

47       See attributes(5) for descriptions of the following attributes:
48
49
50
51
52       ┌─────────────────────────────┬─────────────────────────────┐
53       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │Availability                 │SUNWlibsasl                  │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │Interface Stability          │Evolving                     │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │MT-Level                     │Safe                         │
60       └─────────────────────────────┴─────────────────────────────┘
61

SEE ALSO

63       sasl_errors(3SASL), sasl_seterror(3SASL), attributes(5)
64
65
66       Alvestrand, H. RFC 1766, Tags for the Identification of Languages. Net‐
67       work Working Group. November 1995.
68
69
70
71SunOS 5.11                        14 Oct 2003            sasl_errstring(3SASL)
Impressum