gsasl_mechanism_name_p(3)

gsasl_mechanism_name_p3

Api function

Usage

#include <gsasl.h>

int gsasl_mechanism_name_p(const char * mech);

Arguments

const char * mech

input variable with mechanism name string.

Overview

Check if the mechanism name string mech follows syntactical rules. It does not check that the name is registered with IANA. It does not check that the mechanism name is actually implemented and supported.

SASL mechanisms are named by strings, from 1 to 20 characters in length, consisting of upper-case letters, digits, hyphens, and/or underscores.

Returns

non-zero when mechanism name string mech conforms to rules, zero when it does not meet the requirements.

Since

2.0.0

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Reporting bugs

Report bugs to <[email protected]>.
General guidelines for reporting bugs: https://www.gnu.org/gethelp/
GNU SASL home page: https://www.gnu.org/software/gsasl/

From gsasl 2.2.4-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.