--- mod_auth_mysql-3.0.0/mod_auth_mysql.c.scrambled 2011-06-08 22:52:09.123339737 +0200 +++ mod_auth_mysql-3.0.0/mod_auth_mysql.c 2011-06-08 22:54:22.793714558 +0200 @@ -808,12 +808,9 @@ /* Checks scrambled passwords */ static short pw_scrambled(POOL * pool, const char * real_pw, const char * sent_pw, const char * salt) { char * encrypted_sent_pw = PCALLOC(pool, SCRAMBLED_PASSWORD_CHAR_LENGTH+1); -#ifdef SCRAMBLED_PASSWORD_CHAR_LENGTH_323 /* If we may need to use old password */ - if (real_pw[0] != '*') - make_scrambled_password_323(encrypted_sent_pw, sent_pw); - else -#endif - make_scrambled_password(encrypted_sent_pw, sent_pw); + void my_make_scrambled_password(char *to, const char *password, + size_t pass_len); + my_make_scrambled_password(encrypted_sent_pw, sent_pw, strlen(sent_pw)); return strcmp(real_pw, encrypted_sent_pw) == 0; }