Mercurial > dovecot > original-hg > dovecot-1.2
view src/auth/passdb-cache.h @ 3171:8a3b57385eca HEAD
Added state variable for auth_request and several assertions to make sure
the state is always valid. Fixed assert crash when a user having cached
passdb entry expired tried to authenticate.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 05 Mar 2005 13:48:13 +0200 |
parents | 97f53e0cce63 |
children | 62fc6883faeb |
line wrap: on
line source
#ifndef __PASSDB_CACHE_H #define __PASSDB_CACHE_H #include "auth-cache.h" enum passdb_result; extern struct auth_cache *passdb_cache; int passdb_cache_verify_plain(struct auth_request *request, const char *key, const char *password, enum passdb_result *result_r, int use_expired); int passdb_cache_lookup_credentials(struct auth_request *request, const char *key, const char **result_r, const char **scheme_r, int use_expired); void passdb_cache_init(void); void passdb_cache_deinit(void); #endif