Mercurial > dovecot > core-2.2
diff src/auth/auth-request.c @ 3185:3089083e1d47 HEAD
Handle USER requests from master connections.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 07 Mar 2005 22:21:52 +0200 |
parents | 16ea551957ed |
children | 2ff790d5d9e2 |
line wrap: on
line diff
--- a/src/auth/auth-request.c Mon Mar 07 21:16:15 2005 +0200 +++ b/src/auth/auth-request.c Mon Mar 07 22:21:52 2005 +0200 @@ -37,6 +37,24 @@ return request; } +struct auth_request *auth_request_new_dummy(struct auth *auth) +{ + struct auth_request *auth_request; + pool_t pool; + + pool = pool_alloconly_create("auth_request", 256); + auth_request = p_new(pool, struct auth_request, 1); + auth_request->pool = pool; + + auth_request->refcount = 1; + auth_request->created = ioloop_time; + auth_request->auth = auth; + auth_request->passdb = auth->passdbs; + auth_request->userdb = auth->userdbs; + + return auth_request; +} + void auth_request_success(struct auth_request *request, const void *data, size_t data_size) {