[dovecot-cvs] dovecot/src/auth mech-digest-md5.c,1.17,1.18

cras at procontrol.fi cras at procontrol.fi
Tue Jan 6 05:37:01 EET 2004


Update of /home/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv20295/auth

Modified Files:
	mech-digest-md5.c 
Log Message:
Remove service type checking from given URI. It was hardcoded to IMAP, but
we would also want it to work with POP3. Also some clients seemed to use
something else as imap there..



Index: mech-digest-md5.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/mech-digest-md5.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- mech-digest-md5.c	10 Nov 2003 20:36:02 -0000	1.17
+++ mech-digest-md5.c	6 Jan 2004 03:36:59 -0000	1.18
@@ -14,8 +14,6 @@
 
 #include <stdlib.h>
 
-#define SERVICE_TYPE "imap"
-
 /* Linear whitespace */
 #define IS_LWS(c) ((c) == ' ' || (c) == '\t')
 
@@ -403,11 +401,6 @@
 			return FALSE;
 		}
 
-		if (strcasecmp(trim(uri[0]), SERVICE_TYPE) != 0) {
-			*error = "Unexpected service type in digest-uri";
-			return FALSE;
-		}
-
 		/* FIXME: RFC recommends that we verify the host/serv-type.
 		   But isn't the realm enough already? That'd be just extra
 		   configuration.. Maybe optionally list valid hosts in



More information about the dovecot-cvs mailing list