mech.c revision 6894cb956465bfb921abc7872a48e90c1b632a7e
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainen/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainenvoid mech_register_module(const struct mech_module *module)
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainen i_assert(strcmp(module->mech_name, t_str_ucase(module->mech_name)) == 0);
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainenvoid mech_unregister_module(const struct mech_module *module)
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainen for (pos = &mech_modules; *pos != NULL; pos = &(*pos)->next) {
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainen if (strcmp((*pos)->module.mech_name, module->mech_name) == 0) {
return NULL;
#ifdef HAVE_GSSAPI
#ifdef HAVE_GSSAPI_SPNEGO
struct mechanisms_register *
const char *const *mechanisms;
return reg;
const struct mech_module *
return NULL;
#ifdef BUILTIN_GSSAPI
#ifdef BUILTIN_GSSAPI