.flags = SASL_MECH_SEC_PRIVATE | SASL_MECH_SEC_DICTIONARY |
SASL_MECH_SEC_ACTIVE | SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_VERIFY_RESPONSE,
+ .passdb_need = SASL_MECH_PASSDB_NEED_VERIFY_RESPONSE,
.auth_new = mech_apop_auth_new,
.auth_initial = mech_apop_auth_initial,
.mech_name = "DOVECOT-TOKEN",
.flags = SASL_MECH_SEC_PRIVATE | SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_NOTHING,
+ .passdb_need = SASL_MECH_PASSDB_NEED_NOTHING,
.auth_new = mech_dovecot_token_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
auth_mech_verify_passdb(const struct auth *auth, const struct mech_module_list *list)
{
switch (list->module.passdb_need) {
- case MECH_PASSDB_NEED_NOTHING:
+ case SASL_MECH_PASSDB_NEED_NOTHING:
break;
- case MECH_PASSDB_NEED_VERIFY_PLAIN:
+ case SASL_MECH_PASSDB_NEED_VERIFY_PLAIN:
if (!auth_passdb_list_have_verify_plain(auth))
return FALSE;
break;
- case MECH_PASSDB_NEED_VERIFY_RESPONSE:
- case MECH_PASSDB_NEED_LOOKUP_CREDENTIALS:
+ case SASL_MECH_PASSDB_NEED_VERIFY_RESPONSE:
+ case SASL_MECH_PASSDB_NEED_LOOKUP_CREDENTIALS:
if (!auth_passdb_list_have_lookup_credentials(auth))
return FALSE;
break;
- case MECH_PASSDB_NEED_SET_CREDENTIALS:
+ case SASL_MECH_PASSDB_NEED_SET_CREDENTIALS:
if (!auth_passdb_list_have_lookup_credentials(auth))
return FALSE;
if (!auth_passdb_list_have_set_credentials(auth))
.mech_name = "ANONYMOUS",
.flags = SASL_MECH_SEC_ANONYMOUS | SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_NOTHING,
+ .passdb_need = SASL_MECH_PASSDB_NEED_NOTHING,
.auth_new = mech_anonymous_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.mech_name = "CRAM-MD5",
.flags = SASL_MECH_SEC_DICTIONARY | SASL_MECH_SEC_ACTIVE,
- .passdb_need = MECH_PASSDB_NEED_VERIFY_RESPONSE,
+ .passdb_need = SASL_MECH_PASSDB_NEED_VERIFY_RESPONSE,
.auth_new = mech_cram_md5_auth_new,
.auth_initial = mech_cram_md5_auth_initial,
.flags = SASL_MECH_SEC_DICTIONARY | SASL_MECH_SEC_ACTIVE |
SASL_MECH_SEC_MUTUAL_AUTH,
- .passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
+ .passdb_need = SASL_MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
.auth_new = mech_digest_md5_auth_new,
.auth_initial = mech_digest_md5_auth_initial,
.mech_name = "EXTERNAL",
.flags = 0,
- .passdb_need = MECH_PASSDB_NEED_VERIFY_PLAIN,
+ .passdb_need = SASL_MECH_PASSDB_NEED_VERIFY_PLAIN,
.auth_new = mech_external_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.mech_name = "GSSAPI",
.flags = SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_NOTHING,
+ .passdb_need = SASL_MECH_PASSDB_NEED_NOTHING,
.auth_new = mech_gssapi_auth_new,
.auth_initial = mech_gssapi_auth_initial,
.mech_name = "GSS-SPNEGO",
.flags = SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_NOTHING,
+ .passdb_need = SASL_MECH_PASSDB_NEED_NOTHING,
.auth_new = mech_gssapi_auth_new,
.auth_initial = mech_gssapi_auth_initial,
.mech_name = "LOGIN",
.flags = SASL_MECH_SEC_PLAINTEXT,
- .passdb_need = MECH_PASSDB_NEED_VERIFY_PLAIN,
+ .passdb_need = SASL_MECH_PASSDB_NEED_VERIFY_PLAIN,
.auth_new = mech_login_auth_new,
.auth_initial = mech_login_auth_initial,
.flags = SASL_MECH_SEC_DICTIONARY | SASL_MECH_SEC_ACTIVE |
SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_SET_CREDENTIALS,
+ .passdb_need = SASL_MECH_PASSDB_NEED_SET_CREDENTIALS,
.auth_new = mech_otp_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.mech_name = "PLAIN",
.flags = SASL_MECH_SEC_PLAINTEXT | SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_VERIFY_PLAIN,
+ .passdb_need = SASL_MECH_PASSDB_NEED_VERIFY_PLAIN,
.auth_new = mech_plain_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.mech_name = "SCRAM-SHA-1",
.flags = SASL_MECH_SEC_MUTUAL_AUTH,
- .passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
+ .passdb_need = SASL_MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
.auth_new = mech_scram_sha1_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.mech_name = "SCRAM-SHA-1-PLUS",
.flags = SASL_MECH_SEC_MUTUAL_AUTH | SASL_MECH_SEC_CHANNEL_BINDING,
- .passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
+ .passdb_need = SASL_MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
.auth_new = mech_scram_sha1_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.mech_name = "SCRAM-SHA-256",
.flags = SASL_MECH_SEC_MUTUAL_AUTH,
- .passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
+ .passdb_need = SASL_MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
.auth_new = mech_scram_sha256_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.mech_name = "SCRAM-SHA-256-PLUS",
.flags = SASL_MECH_SEC_MUTUAL_AUTH | SASL_MECH_SEC_CHANNEL_BINDING,
- .passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
+ .passdb_need = SASL_MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
.auth_new = mech_scram_sha256_auth_new,
.auth_initial = sasl_server_mech_generic_auth_initial,
.flags = SASL_MECH_SEC_DICTIONARY | SASL_MECH_SEC_ACTIVE |
SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_NOTHING,
+ .passdb_need = SASL_MECH_PASSDB_NEED_NOTHING,
.auth_new = mech_winbind_ntlm_auth_new,
.auth_initial = mech_winbind_auth_initial,
.mech_name = "GSS-SPNEGO",
.flags = SASL_MECH_SEC_ALLOW_NULS,
- .passdb_need = MECH_PASSDB_NEED_NOTHING,
+ .passdb_need = SASL_MECH_PASSDB_NEED_NOTHING,
.auth_new = mech_winbind_spnego_auth_new,
.auth_initial = mech_winbind_auth_initial,
const char *mech_name;
enum sasl_mech_security_flags flags;
- enum mech_passdb_need passdb_need;
+ enum sasl_mech_passdb_need passdb_need;
struct auth_request *(*auth_new)(void);
void (*auth_initial)(struct auth_request *request,
SASL_PASSDB_RESULT_OK = PASSDB_RESULT_OK,
};
-enum mech_passdb_need {
+enum sasl_mech_passdb_need {
/* Mechanism doesn't need a passdb at all */
- MECH_PASSDB_NEED_NOTHING = 0,
+ SASL_MECH_PASSDB_NEED_NOTHING = 0,
/* Mechanism just needs to verify a given plaintext password */
- MECH_PASSDB_NEED_VERIFY_PLAIN,
+ SASL_MECH_PASSDB_NEED_VERIFY_PLAIN,
/* Mechanism needs to verify a given challenge+response combination,
i.e. there is only a single response from client.
(Currently implemented the same as _LOOKUP_CREDENTIALS) */
- MECH_PASSDB_NEED_VERIFY_RESPONSE,
+ SASL_MECH_PASSDB_NEED_VERIFY_RESPONSE,
/* Mechanism needs to look up credentials with appropriate scheme */
- MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
+ SASL_MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
/* Mechanism needs to look up credentials and also modify them */
- MECH_PASSDB_NEED_SET_CREDENTIALS
+ SASL_MECH_PASSDB_NEED_SET_CREDENTIALS,
};
enum sasl_server_output_status {