Mercurial > dovecot > core-2.2
diff src/pop3-login/client.c @ 9984:097588a7903c HEAD
lib-auth: Changed API to connect to only a single specified auth socket.
Login processes now always connect to socket called "auth".
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 07 Oct 2009 17:46:14 -0400 |
parents | d60fa42fbaac |
children | 45cdc5539c93 |
line wrap: on
line diff
--- a/src/pop3-login/client.c Wed Oct 07 17:44:38 2009 -0400 +++ b/src/pop3-login/client.c Wed Oct 07 17:46:14 2009 -0400 @@ -119,12 +119,11 @@ static char *get_apop_challenge(struct pop3_client *client) { - struct auth_connect_id *id = &client->auth_id; unsigned char buffer[16]; - buffer_t *buf; + buffer_t *buf; - if (!auth_client_reserve_connection(auth_client, "APOP", id)) - return NULL; + auth_client_get_connect_id(auth_client, &client->apop_server_pid, + &client->apop_connect_uid); random_fill(buffer, sizeof(buffer)); buf = buffer_create_static_hard(pool_datastack_create(), @@ -133,7 +132,8 @@ buffer_append_c(buf, '\0'); return i_strdup_printf("<%x.%x.%lx.%s@%s>", - id->server_pid, id->connect_uid, + client->apop_server_pid, + client->apop_connect_uid, (unsigned long)ioloop_time, (const char *)buf->data, my_hostname); }