Next: Callback Functions, Previous: Mechanisms, Up: GNU Simple Authentication and Security Layer [Contents][Index]
ctx: pointer to libgsasl handle.
This functions initializes libgsasl. The handle pointed to by ctx
is valid for use with other libgsasl functions iff this function is
successful. It also register all builtin SASL mechanisms, using
gsasl_register()
.
Return value: GSASL_OK iff successful, otherwise
GSASL_MALLOC_ERROR
.
ctx: libgsasl handle.
This function destroys a libgsasl handle. The handle must not be used with other libgsasl functions after this call.
ctx: libgsasl handle.
out: newly allocated output character array.
Return a newly allocated string containing SASL names, separated by
space, of mechanisms supported by the libgsasl client. out
is
allocated by this function, and it is the responsibility of caller
to deallocate it.
Return value: Returns GSASL_OK
if successful, or error code.
ctx: libgsasl handle.
out: newly allocated output character array.
Return a newly allocated string containing SASL names, separated by
space, of mechanisms supported by the libgsasl server. out
is
allocated by this function, and it is the responsibility of caller
to deallocate it.
Return value: Returns GSASL_OK
if successful, or error code.
ctx: libgsasl handle.
name: name of SASL mechanism.
Decide whether there is client-side support for a specified mechanism.
Return value: Returns 1 if the libgsasl client supports the named mechanism, otherwise 0.
ctx: libgsasl handle.
name: name of SASL mechanism.
Decide whether there is server-side support for a specified mechanism.
Return value: Returns 1 if the libgsasl server supports the named mechanism, otherwise 0.
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.
ctx: pointer to libgsasl handle.
mech: plugin structure with information about plugin.
This function initialize given mechanism, and if successful, add it to the list of plugins that is used by the library.
Return value: GSASL_OK
iff successful, otherwise GSASL_MALLOC_ERROR
.
Since: 0.2.0
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
Next: Callback Functions, Previous: Mechanisms, Up: GNU Simple Authentication and Security Layer [Contents][Index]