}
const struct mech_module mech_anonymous = {
- "ANONYMOUS",
+ .mech_name = "ANONYMOUS",
.flags = MECH_SEC_ANONYMOUS | MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_NOTHING,
- mech_anonymous_auth_new,
- mech_generic_auth_initial,
- mech_anonymous_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_anonymous_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_anonymous_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
}
const struct mech_module mech_apop = {
- "APOP",
+ .mech_name = "APOP",
.flags = MECH_SEC_PRIVATE | MECH_SEC_DICTIONARY | MECH_SEC_ACTIVE |
MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_VERIFY_RESPONSE,
- mech_apop_auth_new,
- mech_apop_auth_initial,
- NULL,
- mech_generic_auth_free
+ .auth_new = mech_apop_auth_new,
+ .auth_initial = mech_apop_auth_initial,
+ .auth_free = mech_generic_auth_free
};
}
const struct mech_module mech_cram_md5 = {
- "CRAM-MD5",
+ .mech_name = "CRAM-MD5",
.flags = MECH_SEC_DICTIONARY | MECH_SEC_ACTIVE,
.passdb_need = MECH_PASSDB_NEED_VERIFY_RESPONSE,
- mech_cram_md5_auth_new,
- mech_cram_md5_auth_initial,
- mech_cram_md5_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_cram_md5_auth_new,
+ .auth_initial = mech_cram_md5_auth_initial,
+ .auth_continue = mech_cram_md5_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
}
const struct mech_module mech_digest_md5 = {
- "DIGEST-MD5",
+ .mech_name = "DIGEST-MD5",
.flags = MECH_SEC_DICTIONARY | MECH_SEC_ACTIVE |
MECH_SEC_MUTUAL_AUTH,
.passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
- mech_digest_md5_auth_new,
- mech_digest_md5_auth_initial,
- mech_digest_md5_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_digest_md5_auth_new,
+ .auth_initial = mech_digest_md5_auth_initial,
+ .auth_continue = mech_digest_md5_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
void mech_digest_test_set_nonce(struct auth_request *auth_request,
}
const struct mech_module mech_dovecot_token = {
- "DOVECOT-TOKEN",
+ .mech_name = "DOVECOT-TOKEN",
.flags = MECH_SEC_PRIVATE | MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_NOTHING,
- mech_dovecot_token_auth_new,
- mech_generic_auth_initial,
- mech_dovecot_token_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_dovecot_token_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_dovecot_token_auth_continue,
+ .auth_free = mech_generic_auth_free
};
}
const struct mech_module mech_external = {
- "EXTERNAL",
+ .mech_name = "EXTERNAL",
.flags = 0,
.passdb_need = MECH_PASSDB_NEED_VERIFY_PLAIN,
- mech_external_auth_new,
- mech_generic_auth_initial,
- mech_external_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_external_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_external_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
}
const struct mech_module mech_gssapi = {
- "GSSAPI",
+ .mech_name = "GSSAPI",
.flags = MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_NOTHING,
- mech_gssapi_auth_new,
- mech_gssapi_auth_initial,
- mech_gssapi_auth_continue,
- mech_gssapi_auth_free
+ .auth_new = mech_gssapi_auth_new,
+ .auth_initial = mech_gssapi_auth_initial,
+ .auth_continue = mech_gssapi_auth_continue,
+ .auth_free = mech_gssapi_auth_free,
};
/* MIT Kerberos v1.5+ and Heimdal v0.7+ support SPNEGO for Kerberos tickets
internally. Nothing else needs to be done here. Note, however, that this does
not support SPNEGO when the only available credential is NTLM. */
const struct mech_module mech_gssapi_spnego = {
- "GSS-SPNEGO",
+ .mech_name = "GSS-SPNEGO",
.flags = MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_NOTHING,
- mech_gssapi_auth_new,
- mech_gssapi_auth_initial,
- mech_gssapi_auth_continue,
- mech_gssapi_auth_free
+ .auth_new = mech_gssapi_auth_new,
+ .auth_initial = mech_gssapi_auth_initial,
+ .auth_continue = mech_gssapi_auth_continue,
+ .auth_free = mech_gssapi_auth_free,
};
static void mech_gssapi_initialize(const struct auth_settings *set)
}
const struct mech_module mech_login = {
- "LOGIN",
+ .mech_name = "LOGIN",
.flags = MECH_SEC_PLAINTEXT,
.passdb_need = MECH_PASSDB_NEED_VERIFY_PLAIN,
- mech_login_auth_new,
- mech_login_auth_initial,
- mech_login_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_login_auth_new,
+ .auth_initial = mech_login_auth_initial,
+ .auth_continue = mech_login_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
}
const struct mech_module mech_oauthbearer = {
- "OAUTHBEARER",
+ .mech_name = "OAUTHBEARER",
/* while this does not transfer plaintext password,
the token is still considered as password */
.flags = MECH_SEC_PLAINTEXT,
.passdb_need = 0,
- mech_oauth2_auth_new,
- mech_generic_auth_initial,
- mech_oauthbearer_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_oauth2_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_oauthbearer_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
const struct mech_module mech_xoauth2 = {
- "XOAUTH2",
+ .mech_name = "XOAUTH2",
.flags = MECH_SEC_PLAINTEXT,
.passdb_need = 0,
- mech_oauth2_auth_new,
- mech_generic_auth_initial,
- mech_xoauth2_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_oauth2_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_xoauth2_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
void mech_oauth2_initialize(void)
*/
const struct mech_module mech_otp = {
- "OTP",
+ .mech_name = "OTP",
.flags = MECH_SEC_DICTIONARY | MECH_SEC_ACTIVE | MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_SET_CREDENTIALS,
- mech_otp_auth_new,
- mech_generic_auth_initial,
- mech_otp_auth_continue,
- mech_otp_auth_free
+ .auth_new = mech_otp_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_otp_auth_continue,
+ .auth_free = mech_otp_auth_free,
};
void mech_otp_deinit(void)
}
const struct mech_module mech_plain = {
- "PLAIN",
+ .mech_name = "PLAIN",
.flags = MECH_SEC_PLAINTEXT | MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_VERIFY_PLAIN,
- mech_plain_auth_new,
- mech_generic_auth_initial,
- mech_plain_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_plain_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_plain_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
}
const struct mech_module mech_scram_sha1 = {
- "SCRAM-SHA-1",
+ .mech_name = "SCRAM-SHA-1",
.flags = MECH_SEC_MUTUAL_AUTH,
.passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
- mech_scram_sha1_auth_new,
- mech_generic_auth_initial,
- mech_scram_auth_continue,
- mech_scram_auth_free,
+ .auth_new = mech_scram_sha1_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_scram_auth_continue,
+ .auth_free = mech_scram_auth_free,
};
const struct mech_module mech_scram_sha1_plus = {
- "SCRAM-SHA-1-PLUS",
+ .mech_name = "SCRAM-SHA-1-PLUS",
.flags = MECH_SEC_MUTUAL_AUTH | MECH_SEC_CHANNEL_BINDING,
.passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
- mech_scram_sha1_auth_new,
- mech_generic_auth_initial,
- mech_scram_auth_continue,
- mech_scram_auth_free
+ .auth_new = mech_scram_sha1_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_scram_auth_continue,
+ .auth_free = mech_scram_auth_free,
};
const struct mech_module mech_scram_sha256 = {
- "SCRAM-SHA-256",
+ .mech_name = "SCRAM-SHA-256",
.flags = MECH_SEC_MUTUAL_AUTH,
.passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
- mech_scram_sha256_auth_new,
- mech_generic_auth_initial,
- mech_scram_auth_continue,
- mech_scram_auth_free,
+ .auth_new = mech_scram_sha256_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_scram_auth_continue,
+ .auth_free = mech_scram_auth_free,
};
const struct mech_module mech_scram_sha256_plus = {
- "SCRAM-SHA-256-PLUS",
+ .mech_name = "SCRAM-SHA-256-PLUS",
.flags = MECH_SEC_MUTUAL_AUTH | MECH_SEC_CHANNEL_BINDING,
.passdb_need = MECH_PASSDB_NEED_LOOKUP_CREDENTIALS,
- mech_scram_sha256_auth_new,
- mech_generic_auth_initial,
- mech_scram_auth_continue,
- mech_scram_auth_free
+ .auth_new = mech_scram_sha256_auth_new,
+ .auth_initial = mech_generic_auth_initial,
+ .auth_continue = mech_scram_auth_continue,
+ .auth_free = mech_scram_auth_free,
};
}
const struct mech_module mech_winbind_ntlm = {
- "NTLM",
+ .mech_name = "NTLM",
.flags = MECH_SEC_DICTIONARY | MECH_SEC_ACTIVE |
MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_NOTHING,
- mech_winbind_ntlm_auth_new,
- mech_winbind_auth_initial,
- mech_winbind_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_winbind_ntlm_auth_new,
+ .auth_initial = mech_winbind_auth_initial,
+ .auth_continue = mech_winbind_auth_continue,
+ .auth_free = mech_generic_auth_free,
};
const struct mech_module mech_winbind_spnego = {
- "GSS-SPNEGO",
+ .mech_name = "GSS-SPNEGO",
.flags = MECH_SEC_ALLOW_NULS,
.passdb_need = MECH_PASSDB_NEED_NOTHING,
- mech_winbind_spnego_auth_new,
- mech_winbind_auth_initial,
- mech_winbind_auth_continue,
- mech_generic_auth_free
+ .auth_new = mech_winbind_spnego_auth_new,
+ .auth_initial = mech_winbind_auth_initial,
+ .auth_continue = mech_winbind_auth_continue,
+ .auth_free = mech_generic_auth_free,
};