1sasl_errstring(3) SASL man pages sasl_errstring(3)
2
3
4
6 sasl_errstring - Translate a SASL return code to a human-readable form
7
8
9
11 #include <sasl/sasl.h>
12
13
14 const char * sasl_errstring(int saslerr,
15 const char * langlist,
16 const char ** outlang);
17
18
20 sasl_usererr is called to convert a SASL return code (an integer) into
21 a human readable string. At this time the only language available is
22 american english written by programmers (aka gobbledygook). Note that
23 a server should call sasl_usererr on a return code first if the string
24 is going to be sent to the client.
25
26 saslerr specifies the error number to convert.
27
28 langlist is currently unused; Use NULL.
29
30 outlang specifies the desired RFC 1766 language for output. NULL
31 defaults to "en-us," currently the only supported language.
32
33 It should be noted that this function is not the recommended means of
34 extracting error code information from SASL, instead application should
35 use sasl_errdetail(3), which contains this information (and more)
36
38 Returns the string. If langlist is NULL, US-ASCII is used.
39
41 RFC 4422
42
44 sasl(3), sasl_errdetail(3), sasl_errors(3)
45
46
47
48SASL 10 July 2001 sasl_errstring(3)