]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Remove service type checking from given URI. It was hardcoded to IMAP, but
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2004 03:36:59 +0000 (05:36 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2004 03:36:59 +0000 (05:36 +0200)
we would also want it to work with POP3. Also some clients seemed to use
something else as imap there..

--HG--
branch : HEAD

src/auth/mech-digest-md5.c

index cc22b0e64d1da18e17c5aa997e7fd7aab9ee2647..8c6afe096db42bae8e63b0e8b79e35df04c309b8 100644 (file)
@@ -14,8 +14,6 @@
 
 #include <stdlib.h>
 
-#define SERVICE_TYPE "imap"
-
 /* Linear whitespace */
 #define IS_LWS(c) ((c) == ' ' || (c) == '\t')
 
@@ -403,11 +401,6 @@ static int auth_handle_response(struct digest_auth_request *auth,
                        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