1.. saslman:: sasl_global_listmech(3)
2
3.. _sasl-reference-manpages-library-sasl_global_listmech:
4
5
6===========================================================================
7**sasl_global_listmech** - Retrieve a list of the supported SASL mechanisms
8===========================================================================
9
10Synopsis
11========
12
13.. code-block:: C
14
15    #include <sasl/sasl.h>
16
17    const char ** sasl_global_listmech();
18
19Description
20===========
21
22.. c:function::  const char ** sasl_global_listmech();
23
24
25    **sasl_global_listmech** returns a null‐terminated array of
26    strings that lists all mechanisms that are loaded by
27    either the client or server side of the library.
28
29Return Value
30============
31
32Returns a pointer to the array on success. NULL on failure
33(sasl library uninitialized).
34
35See Also
36========
37
38:rfc:`4422`,:saslman:`sasl(3)`, :saslman:`sasl_server_init(3)`,
39:saslman:`sasl_listmech(3)`, :saslman:`sasl_client_init(3)`
40