Lines 808-819
Link Here
|
808 |
/* Checks scrambled passwords */ |
808 |
/* Checks scrambled passwords */ |
809 |
static short pw_scrambled(POOL * pool, const char * real_pw, const char * sent_pw, const char * salt) { |
809 |
static short pw_scrambled(POOL * pool, const char * real_pw, const char * sent_pw, const char * salt) { |
810 |
char * encrypted_sent_pw = PCALLOC(pool, SCRAMBLED_PASSWORD_CHAR_LENGTH+1); |
810 |
char * encrypted_sent_pw = PCALLOC(pool, SCRAMBLED_PASSWORD_CHAR_LENGTH+1); |
811 |
#ifdef SCRAMBLED_PASSWORD_CHAR_LENGTH_323 /* If we may need to use old password */ |
811 |
void my_make_scrambled_password(char *to, const char *password, |
812 |
if (real_pw[0] != '*') |
812 |
size_t pass_len); |
813 |
make_scrambled_password_323(encrypted_sent_pw, sent_pw); |
813 |
my_make_scrambled_password(encrypted_sent_pw, sent_pw, strlen(sent_pw)); |
814 |
else |
|
|
815 |
#endif |
816 |
make_scrambled_password(encrypted_sent_pw, sent_pw); |
817 |
return strcmp(real_pw, encrypted_sent_pw) == 0; |
814 |
return strcmp(real_pw, encrypted_sent_pw) == 0; |
818 |
} |
815 |
} |
819 |
|
816 |
|