passdb.c revision 6d239203867965ad42f38747f0b84e7314d215d3
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Copyright (C) 2002-2003 Timo Sirainen */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncstatic const char *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncpassdb_credentials_to_str(enum passdb_credentials credentials)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync return "PLAIN";
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync return "CRYPT";
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync return "DIGEST-MD5";
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync return "??";
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncvoid passdb_handle_credentials(enum passdb_credentials credentials,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const char *scheme,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync /* anything goes */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync password = t_strdup_printf("{%s}%s", scheme, password);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync wanted_scheme = passdb_credentials_to_str(credentials);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync /* we can generate anything out of plaintext
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync passwords */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync "scheme, but we have only %s",
#ifdef PASSDB_PGSQL
#ifdef AUTH_MODULES
void passdb_deinit(void)
#ifdef AUTH_MODULES