X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/d9898ee81388d1eff40cf71e85d9ce9b5c1401fe..63de08e73527e511139fcec8ec636027ed137c69:/checkpassword.c diff --git a/checkpassword.c b/checkpassword.c index 22dddef..b71fe14 100644 --- a/checkpassword.c +++ b/checkpassword.c @@ -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