From 81af7edbd0f3aaeb8c0ba4854fb3e4baad476d41 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 7 Jun 2001 12:18:02 +0000 Subject: [PATCH] Blowfish detection patch from Alexander Bokovoy --- ext/standard/config.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 4f68ecde38d..cdfa5269dc3 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -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);