Lines Matching defs:mech
51 #include "mech.h"
138 * @param mech mechanism to check.
143 mechanism_flags_OK(const saslc__mech_list_node_t *mech, uint32_t flags)
147 if (mech == NULL)
153 if ((mech->mech->flags & rejflags) != 0)
156 if ((mech->mech->flags & reqflags) != reqflags)
169 * @return pointer to the mech on success, NULL if none mechanism is chosen
217 return m->mech;
225 * property dictionary, chooses best mechanism, creates mech session.
244 if ((sess->mech = saslc__sess_choose_mech(ctx, mechs, sec_opts))
249 m = saslc__mech_list_get(ctx->mechanisms, sess->mech->name);
257 if (sess->mech->create(sess) == -1)
286 sess->mech->destroy(sess);
359 sess->mech->name)) == NULL)
363 saslc__msg_dbg("%s: mech %s dict: %s=%s", __func__,
447 rv = sess->mech->cont(sess, in, inlen, out, outlen);
614 return saslc__sess_xxcode(sess, sess->mech->encode,
635 return saslc__sess_xxcode(sess, sess->mech->decode,
660 return sess->mech->name;