changeset 4924:98780639b190 HEAD

"Plaintext authentication disabled" -> "Plaintext authentication disallowed on non-secure connections"
author Timo Sirainen <tss@iki.fi>
date Wed, 20 Dec 2006 06:52:28 +0200
parents c1965cbf5c87
children 15fd97d86693
files src/imap-login/client-authenticate.c src/login-common/common.h src/pop3-login/client-authenticate.c
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap-login/client-authenticate.c	Wed Dec 20 06:36:49 2006 +0200
+++ b/src/imap-login/client-authenticate.c	Wed Dec 20 06:52:28 2006 +0200
@@ -294,8 +294,7 @@
 			"* BAD [ALERT] Plaintext authentication is disabled, "
 			"but your client sent password in plaintext anyway. "
 			"If anyone was listening, the password was exposed.");
-		client_send_tagline(client,
-				    "NO Plaintext authentication disabled.");
+		client_send_tagline(client, "NO "AUTH_PLAINTEXT_DISABLED_MSG);
 		return 1;
 	}
 
--- a/src/login-common/common.h	Wed Dec 20 06:36:49 2006 +0200
+++ b/src/login-common/common.h	Wed Dec 20 06:52:28 2006 +0200
@@ -8,6 +8,8 @@
 
 #define AUTH_FAILED_MSG "Authentication failed."
 #define AUTH_TEMP_FAILED_MSG "Temporary authentication failure."
+#define AUTH_PLAINTEXT_DISABLED_MSG \
+	"Plaintext authentication disallowed on non-secure connections."
 
 extern const char *login_protocol;
 
--- a/src/pop3-login/client-authenticate.c	Wed Dec 20 06:36:49 2006 +0200
+++ b/src/pop3-login/client-authenticate.c	Wed Dec 20 06:52:28 2006 +0200
@@ -263,8 +263,7 @@
 		client_syslog(&client->common, "Login failed: "
 			      "Plaintext authentication disabled");
 	}
-	client_send_line(client,
-			 "-ERR Plaintext authentication disabled.");
+	client_send_line(client, "-ERR "AUTH_PLAINTEXT_DISABLED_MSG);
 	return FALSE;
 }