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

# sasl\_getpath\_t(3)

The SASL callback to indicate location of the mechanism drivers

## NAME

sasl\_getpath\_t - The SASL callback to indicate location of the mechanism drivers

## SYNOPSIS

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

int sasl_getpath_t(void *context,
		        char ** path);
```

## DESCRIPTION

**sasl\_getpath\_t** is used if the application wishes to use a different location for the SASL mechanism drivers (the shared library files). If this callback is not used SASL will either use the location in the environment variable SASL\_PATH or /usr/lib/sasl2 by default.

## RETURN VALUE

SASL callback functions should return SASL return codes. See sasl.h for a complete list. SASL\_OK indicates success.

## CONFORMING TO

RFC 4422

## SEE ALSO

[sasl(3)](/sasl/3.md), [sasl\_callbacks(3)](/sasl_callbacks/3.md), [sasl\_errors(3)](/sasl_errors/3.md)
