---
name: "sasl_global_listmech"
section: "3"
platform: "linux"
package: "libsasl2-dev"
version: "2.1.28+dfsg1-9"
release: "Debian 13 (Trixie)"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/sasl_global_listmech"
---

# sasl\_global\_listmech(3)

Cyrus SASL documentation

## NAME

sasl\_global\_listmech - Cyrus SASL documentation

## SYNOPSIS

```
#include <sasl/sasl.h>
const char ** sasl_global_listmech();
```

## DESCRIPTION

- **const char \*\*sasl\_global\_listmech();**

  **sasl\_global\_listmech** returns a null‐terminated array of strings that lists all mechanisms that are loaded by either the client or server side of the library.

## RETURN VALUE

Returns a pointer to the array on success. NULL on failure (sasl library uninitialized).

## SEE ALSO

*RFC 4422*,:saslman:*[sasl(3)](/sasl/3.md)*, *[sasl\_server\_init(3)](/sasl_server_init/3.md)*, *[sasl\_listmech(3)](/sasl_listmech/3.md)*, *[sasl\_client\_init(3)](/sasl_client_init/3.md)*

## AUTHOR

The Cyrus Team

## COPYRIGHT

1993-2016, The Cyrus Team
