mech.c revision a64adf62fa33f2463a86f990217b0c9078531a40
45312f52ff3a3d4c137447be4c7556500c2f8bf2Timo Sirainen/* Copyright (c) 2002-2009 Dovecot authors, see the included COPYING file */
16f46efe0e090fe6975acf012a61a160f4787985Andrey Paninvoid mech_register_module(const struct mech_module *module)
16f46efe0e090fe6975acf012a61a160f4787985Andrey Paninvoid mech_unregister_module(const struct mech_module *module)
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainen for (pos = &mech_modules; *pos != NULL; pos = &(*pos)->next) {
d1414c09cf0d58ac983054e2f4e1a1f329272dcfTimo Sirainen if (strcmp((*pos)->module.mech_name, module->mech_name) == 0) {
7242e1ce7803b83bc82e239ef111b47c1c72dd4bAndrey Paninconst struct mech_module *mech_module_find(const char *name)
d1414c09cf0d58ac983054e2f4e1a1f329272dcfTimo Sirainen for (list = mech_modules; list != NULL; list = list->next) {
c57776c06ec99ba9b0dafdbf9475ea72ea8ca134Timo Sirainen if (strcasecmp(list->module.mech_name, name) == 0)
e70d5895795732b8247ab9abb045b438e954bc46Timo Sirainenvoid mech_generic_auth_initial(struct auth_request *request,
e70d5895795732b8247ab9abb045b438e954bc46Timo Sirainen request->callback(request, AUTH_CLIENT_RESULT_CONTINUE,
e70d5895795732b8247ab9abb045b438e954bc46Timo Sirainen request->mech->auth_continue(request, data, data_size);
e70d5895795732b8247ab9abb045b438e954bc46Timo Sirainenvoid mech_generic_auth_free(struct auth_request *request)
1ddec6312bc6882aeb17d4d46d19cbca1723b68bTimo Sirainenextern const struct mech_module mech_digest_md5;
1ddec6312bc6882aeb17d4d46d19cbca1723b68bTimo Sirainenextern const struct mech_module mech_anonymous;
704fbadd78375da18dcaf2c5d93ac8cfe2c61358Timo Sirainenextern const struct mech_module mech_gssapi_spnego;
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenextern const struct mech_module mech_winbind_ntlm;
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenextern const struct mech_module mech_winbind_spnego;
a64adf62fa33f2463a86f990217b0c9078531a40Timo Sirainenvoid mech_init(const struct auth_settings *set)
6e873f135368bcfdd1de4458dded791d0c4d00cdTimo Sirainen#if defined(HAVE_GSSAPI_SPNEGO) && defined(BUILTIN_GSSAPI)
a64adf62fa33f2463a86f990217b0c9078531a40Timo Sirainenvoid mech_deinit(const struct auth_settings *set)
6e873f135368bcfdd1de4458dded791d0c4d00cdTimo Sirainen#if defined(HAVE_GSSAPI_SPNEGO) && defined(BUILTIN_GSSAPI)