gsasl
2.2.1
|
Go to the source code of this file.
Functions | |
int | gsasl_mechanism_name_p (const char *mech) |
const char * | gsasl_client_suggest_mechanism (Gsasl *ctx, const char *mechlist) |
Variables | |
const char * | _GSASL_VALID_MECHANISM_CHARACTERS |
const char* gsasl_client_suggest_mechanism | ( | Gsasl * | ctx, |
const char * | mechlist | ||
) |
gsasl_client_suggest_mechanism:
ctx | libgsasl handle. |
mechlist | input character array with SASL mechanism names, separated by invalid characters (e.g. SPC). |
Given a list of mechanisms, suggest which to use.
Return value: Returns name of "best" SASL mechanism supported by the libgsasl client which is present in the input string, or NULL if no supported mechanism is found.
int gsasl_mechanism_name_p | ( | const char * | mech | ) |
gsasl_mechanism_name_p:
mech | input variable with mechanism name string. |
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