changeset 1903:3136aa09df05 HEAD

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..
author Timo Sirainen <tss@iki.fi>
date Tue, 06 Jan 2004 05:36:59 +0200
parents ee8fb7ab106f
children 00cc093bb85f
files src/auth/mech-digest-md5.c
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/mech-digest-md5.c	Tue Jan 06 05:23:56 2004 +0200
+++ b/src/auth/mech-digest-md5.c	Tue Jan 06 05:36:59 2004 +0200
@@ -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