58 #if defined(USE_SASL_AUTH) && defined(USE_CYRUS_SASL)
65 static const NAME_MASK xsasl_cyrus_sec_mask[] = {
66 "noplaintext", SASL_SEC_NOPLAINTEXT,
67 "noactive", SASL_SEC_NOACTIVE,
68 "nodictionary", SASL_SEC_NODICTIONARY,
69 #ifdef SASL_SEC_FORWARD_SECRECY
70 "forward_secrecy", SASL_SEC_FORWARD_SECRECY,
72 "noanonymous", SASL_SEC_NOANONYMOUS,
73 #if SASL_VERSION_MAJOR >= 2
74 "mutual_auth", SASL_SEC_MUTUAL_AUTH,
81 int xsasl_cyrus_security_parse_opts(
const char *sasl_opts_val)
83 return (
name_mask_opt(
"SASL security options", xsasl_cyrus_sec_mask,
#define name_mask_opt(tag, table, str, flags)