passdb-cache.h revision 5bb7c9863cbb62c41b13e7f42e04f1d57b4634f8
2454dfa32c93c20a8522c6ed42fe057baaac9f9aStephan Bosch#ifndef PASSDB_CACHE_H
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen#define PASSDB_CACHE_H
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen#include "auth-cache.h"
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen#include "passdb.h"
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainenextern struct auth_cache *passdb_cache;
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainenbool passdb_cache_verify_plain(struct auth_request *request, const char *key,
b7324e421e2132cbbf753e6fdbe675bbaecdf929Timo Sirainen const char *password,
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen enum passdb_result *result_r, bool use_expired);
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainenbool passdb_cache_lookup_credentials(struct auth_request *request,
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39Timo Sirainen const char *key, const char **password_r,
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainen const char **scheme_r,
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainen enum passdb_result *result_r,
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainen bool use_expired);
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainen
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainenvoid passdb_cache_init(const struct auth_settings *set);
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainenvoid passdb_cache_deinit(void);
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainen
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainen#endif
c9099b08b3cae8a849098ca776b4363c6d5f5f36Timo Sirainen