1sasl_getopt_t(10 July 2001) sasl_getopt_t(10 July 2001)
2
3
4
6 sasl_getopt_t - The SASL get option callback
7
8
9
11 #include <sasl/sasl.h>
12
13
14 int sasl_getopt_t(void *context,
15 const char *plugin_name,
16 const char *option,
17 const char ** result,
18 unsigned * len);
19
20
22 sasl_getopt_t is used to retrieve an option, often mechanism specific,
23 from the application. An example of this is requested what KERBEROS_V4
24 srvtab file to use. plugin_name is the plugin this value if for.
25 option is a string representing the option. A common option that all
26 server applications should handle is method for checking plaintext
27 passwords. See the administrators guide for a full description of this
28 option.
29
30 Memory management of options supplied by the getopt callback should be
31 done by the application, however, any requested option must remain
32 available until the callback is no longer valid. That is, when
33 sasl_dispose is called for a the connection it is associated with, or
34 sasl_done is called for global callbacks.
35
37 SASL callback functions should return SASL return codes. See sasl.h for
38 a complete list. SASL_OK indicates success.
39
40
42 RFC 2222
43
45 sasl(3), sasl_callbacks(3), sasl_errors(3)
46
47
48
49SASL man pages SASL sasl_getopt_t(10 July 2001)