Mercurial > dovecot > core-2.2
diff src/auth/auth-request.h @ 3161:6a3254e3c3de HEAD
Moved cache handling from sql/ldap-specific code to generic auth-request
code. Did some small optimizations on the way.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 27 Feb 2005 00:55:03 +0200 |
parents | 8849f2e380d1 |
children | e6a487d80288 |
line wrap: on
line diff
--- a/src/auth/auth-request.h Fri Feb 25 01:59:45 2005 +0200 +++ b/src/auth/auth-request.h Sun Feb 27 00:55:03 2005 +0200 @@ -13,7 +13,9 @@ pool_t pool; char *user; - const char *extra_fields; + char *mech_password; /* set if verify_plain() is called */ + char *passdb_password; /* set after password lookup if successful */ + string_t *extra_fields; struct mech_module *mech; struct auth *auth; @@ -26,6 +28,11 @@ const char *service; struct ip_addr local_ip, remote_ip; + union { + verify_plain_callback_t *verify_plain; + lookup_credentials_callback_t *lookup_credentials; + } private_callback; + mech_callback_t *callback; void *context; @@ -68,13 +75,8 @@ int auth_request_set_username(struct auth_request *request, const char *username, const char **error_r); -struct auth_request_extra * -auth_request_extra_begin(struct auth_request *request); -void auth_request_extra_next(struct auth_request_extra *extra, - const char *name, const char *value); -void auth_request_extra_finish(struct auth_request_extra *extra, - const char *user_password, - const char *cache_key); +void auth_request_set_field(struct auth_request *request, + const char *name, const char *value); const struct var_expand_table * auth_request_get_var_expand_table(const struct auth_request *auth_request,