---
name: "sasl_dispose"
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_dispose"
---

# sasl\_dispose(3)

Cyrus SASL documentation

## NAME

sasl\_dispose - Cyrus SASL documentation

## SYNOPSIS

```
#include <sasl/sasl.h>
void sasl_dispose(sasl_conn_t **pconn );
```

## DESCRIPTION

- **int sasl\_encode(sasl\_conn\_t \*conn,**

  - **const char \* input,**

  - **unsigned inputlen,**

  - **const char \*\* output,**

  - **unsigned \* outputlen);**

  **sasl\_dispose** is called when a SASL connection object is no longer needed.

  Note that this is usually when the protocol session is done NOT when the authentication is done since a security layer may have been negotiated.

  - **Parameters**

    - •

      **conn** – is the SASL connection context

## RETURN VALUE

No return values

## CONFORMING TO

*RFC 4422*

## SEE ALSO

*[sasl(3)](/sasl/3.md)*, *[sasl\_server\_new(3)](/sasl_server_new/3.md)*, *[sasl\_client\_new(3)](/sasl_client_new/3.md)*,

## AUTHOR

The Cyrus Team

## COPYRIGHT

1993-2016, The Cyrus Team
