---
name: "sasl_getsimple_t"
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_getsimple_t"
---

# sasl\_getsimple\_t(3)

Cyrus SASL documentation

## NAME

sasl\_getsimple\_t - Cyrus SASL documentation

## SYNOPSIS

```
#include <sasl/sasl.h>
int sasl_getsimple_t(void *context,
                    int id,
                    const char ** result,
                    unsigned * len);
```

## DESCRIPTION

- **int sasl\_getsimple\_t(void \*context,**

  - **int id,**

  - **const char \*\* result,**

  - **unsigned \* len);**

  **sasl\_getsimple\_t** is used to retrieve simple things from the application. In practice this is authentication name, authorization name, and realm.

  - **Parameters**

    - •

      **context** – SASL connection context

    - •

      **id** –

      indicates which value is being requested.  Possible values include:

      - •

        SASL\_CB\_USER     ‐ Client user identity to login as

      - •

        SASL\_CB\_AUTHNAME ‐ Client authentication name

      - •

        SASL\_CB\_LANGUAGE ‐ Comma‐separated list of *RFC 1766* languages

      - •

        SASL\_CB\_CNONCE   ‐ Client‐nonce (for testing mostly)

    - •

      **result** – value of the item requested

    - •

      **len** – lenth of the result

## RETURN VALUE

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

## SEE ALSO

*RFC 4422*,:saslman:*[sasl(3)](/sasl/3.md)*, *[sasl\_callbacks(3)](/sasl_callbacks/3.md)*, *[sasl\_errors(3)](/sasl_errors/3.md)*

## AUTHOR

The Cyrus Team

## COPYRIGHT

1993-2016, The Cyrus Team
