---
name: "sasl_global_listmech"
section: "3"
platform: "macos"
package: "passwordserver_sasl"
version: "215"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/sasl_global_listmech"
---

# sasl\_global\_listmech(3)

Retrieve a list of the supported SASL mechanisms

## NAME

sasl\_listmech - Retrieve a list of the supported SASL mechanisms

## SYNOPSIS

```
#include <sasl/sasl.h>

const char ** sasl_global_listmech()
```

## DESCRIPTION

**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).

## CONFORMING TO

RFC 4422

## SEE ALSO

[sasl(3)](/sasl/3.md), [sasl\_listmech(3)](/sasl_listmech/3.md), [sasl\_server\_init(3)](/sasl_server_init/3.md), [sasl\_client\_init(3)](/sasl_client_init/3.md)
