Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / checkpassword.c
index 22dddef..b71fe14 100644 (file)
@@ -16,7 +16,7 @@
 #include       "auth.h"
 #include       "courierauthdebug.h"
 
-static const char rcsid[]="$Id: checkpassword.c,v 1.15 2006/10/28 19:22:52 mrsam Exp $";
+static const char rcsid[]="$Id: checkpassword.c,v 1.16 2007/10/07 02:50:45 mrsam Exp $";
 
 #if HAVE_CRYPT
 #if NEED_CRYPT_PROTOTYPE
@@ -36,8 +36,9 @@ static int do_authcheckpassword(const char *password, const char *encrypted_pass
 {
 #if    HAVE_MD5LIB
        if (strncmp(encrypted_password, "$1$", 3) == 0
-               || strncasecmp(encrypted_password, "{MD5}", 5) == 0
-               )
+           || strncasecmp(encrypted_password, "{MD5}", 5) == 0
+           || strncasecmp(encrypted_password, "{MD5RAW}", 8) == 0
+           )
                return (authcheckpasswordmd5(password, encrypted_password));
 #endif