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.