Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/auth/passdb-cache.h @ 2798:54b29901a793 HEAD
Added simple LRU cache for auth requests. Currently only for sql passdb.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 21 Oct 2004 05:23:09 +0300 |
parents | |
children | 6a3254e3c3de |
comparison
equal
deleted
inserted
replaced
2797:322b580e0eb4 | 2798:54b29901a793 |
---|---|
1 #ifndef __PASSDB_CACHE_H | |
2 #define __PASSDB_CACHE_H | |
3 | |
4 #include "auth-cache.h" | |
5 | |
6 enum passdb_result; | |
7 extern struct auth_cache *passdb_cache; | |
8 | |
9 int passdb_cache_verify_plain(struct auth_request *request, const char *key, | |
10 const char *password, const char *default_scheme, | |
11 enum passdb_result *result_r); | |
12 int passdb_cache_lookup_credentials(struct auth_request *request, | |
13 const char *key, const char **result_r, | |
14 const char **scheme_r); | |
15 | |
16 void passdb_cache_init(void); | |
17 void passdb_cache_deinit(void); | |
18 | |
19 #endif |