[dovecot-cvs] dovecot/src/imap-login client-authenticate.c, 1.44, 1.45

tss at dovecot.org tss at dovecot.org
Sun Dec 3 12:13:54 UTC 2006


Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv21400/imap-login

Modified Files:
	client-authenticate.c 
Log Message:
Changed the service name from uppercase IMAP/POP3 to lowercase imap/pop3 so
they're consistent with smtp/deliver.



Index: client-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client-authenticate.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- client-authenticate.c	12 Nov 2006 12:41:32 -0000	1.44
+++ client-authenticate.c	3 Dec 2006 12:13:51 -0000	1.45
@@ -17,6 +17,8 @@
 
 #include <stdlib.h>
 
+#define IMAP_SERVICE_NAME "imap"
+
 const char *client_authenticate_get_capabilities(bool secured)
 {
 	const struct auth_mech_desc *mech;
@@ -255,7 +257,7 @@
 		return 0;
 
 	client_ref(client);
-	sasl_server_auth_begin(&client->common, "IMAP", mech_name,
+	sasl_server_auth_begin(&client->common, IMAP_SERVICE_NAME, mech_name,
 			       init_resp, sasl_callback);
 	if (!client->common.authenticating)
 		return 1;
@@ -310,7 +312,7 @@
 	base64_encode(plain_login->data, plain_login->used, base64);
 
 	client_ref(client);
-	sasl_server_auth_begin(&client->common, "IMAP", "PLAIN",
+	sasl_server_auth_begin(&client->common, IMAP_SERVICE_NAME, "PLAIN",
 			       str_c(base64), sasl_callback);
 	if (!client->common.authenticating)
 		return 1;



More information about the dovecot-cvs mailing list