1sasl_client_init(21 June 2001) sasl_client_init(21 June 2001)
2
3
4
6 sasl_client_init - SASL client authentication initialization
7
8
9
11 #include <sasl/sasl.h>
12
13 int sasl_client_init(const sasl_callback_t *callbacks);
14
15
17 sasl_client_init() initializes SASL. It must be called before any calls
18 to sasl_client_start. This call initializes all SASL client drivers
19 (e.g. authentication mechanisms). These are usually found in the
20 /usr/lib/sasl2 directory but the directory may be overridden with the
21 SASL_PATH environment variable.
22
23 callbacks specifies the base callbacks for all client connections. See
24 the sasl_callbacks man page for more information
25
27 sasl_client_init returns an integer which corresponds to one of the
28 following codes. SASL_OK is the only one that indicates success. All
29 others indicate errors and should either be handled or the authentica‐
30 tion session should be quit.
31
32
33
35 SASL_OK Success
36
37 SASL_BADVERS
38 Mechanism version mismatch
39
40 SASL_BADPARAM
41 Error in config file
42
43 SASL_NOMEM
44 Not enough memory to complete operation
45
46
48 RFC 2222
49
51 sasl(3), sasl_callbacks(3), sasl_client_new(3), sasl_client_start(3),
52 sasl_client_step(3)
53
54
55
56SASL man pages SASL sasl_client_init(21 June 2001)