27 find_mechanism (
const char *mech,
size_t n_mechs,
Gsasl_mechanism *mechs)
34 for (i = 0; i < n_mechs; i++)
35 if (strcmp (mech, mechs[i].
name) == 0)
50 mechptr = find_mechanism (mech, n_mechs, mechs);
91 out = calloc (1,
sizeof (*out));
95 res = setup (ctx, mech, out, n_mechs, mechs, clientp);
@ GSASL_UNKNOWN_MECHANISM
_GSASL_API void gsasl_finish(Gsasl_session *sctx)
Gsasl_start_function start
struct Gsasl_mechanism_functions server
struct Gsasl_mechanism_functions client
Gsasl_mechanism * server_mechs
Gsasl_mechanism * client_mechs
int gsasl_client_start(Gsasl *ctx, const char *mech, Gsasl_session **sctx)
int gsasl_server_start(Gsasl *ctx, const char *mech, Gsasl_session **sctx)