dovecot-2.0: pop3: Show APOP challenge only when APOP auth mecha...

dovecot at dovecot.org dovecot at dovecot.org
Thu Aug 19 20:28:24 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/eed1426f55a9
changeset: 12012:eed1426f55a9
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Aug 19 18:28:20 2010 +0100
description:
pop3: Show APOP challenge only when APOP auth mechanism is enabled.

diffstat:

 src/pop3-login/client.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 565f18727209 -r eed1426f55a9 src/pop3-login/client.c
--- a/src/pop3-login/client.c	Thu Aug 19 18:19:53 2010 +0100
+++ b/src/pop3-login/client.c	Thu Aug 19 18:28:20 2010 +0100
@@ -138,6 +138,11 @@
 	unsigned char buffer_base64[MAX_BASE64_ENCODED_SIZE(sizeof(buffer)) + 1];
 	buffer_t buf;
 
+	if (auth_client_find_mech(auth_client, "APOP") == NULL) {
+		/* disabled, no need to present the challenge */
+		return NULL;
+	}
+
 	auth_client_get_connect_id(auth_client, &client->apop_server_pid,
 				   &client->apop_connect_uid);
 


More information about the dovecot-cvs mailing list