mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Blowfish detection patch from Alexander Bokovoy <ab@avilink.net>
This commit is contained in:
parent
bf1738e86d
commit
81af7edbd0
@ -159,12 +159,12 @@ main() {
|
||||
|
||||
main() {
|
||||
#if HAVE_CRYPT
|
||||
char salt[25], answer[70];
|
||||
char salt[30], answer[70];
|
||||
|
||||
salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
|
||||
strcat(salt,"rasmuslerd");
|
||||
strcat(salt,"rasmuslerd............");
|
||||
strcpy(answer,salt);
|
||||
strcpy(&answer[16],"O............gl95GkTKn53Of.H4YchXl5PwvvW.5ri");
|
||||
strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
|
||||
exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
|
||||
#else
|
||||
exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user