cvs: /php4/ext/standard crypt.c

From: Date: Fri, 05 May 2000 10:36:01 +0000
Subject: cvs: /php4/ext/standard crypt.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-14512@lists.php.net to get a copy of this message
sas Fri May 5 03:36:01 2000 EDT Modified files: /php4/ext/standard crypt.c Log: Put in a hack, so that users can compile PHP, even if the configure-time checks failed to detect the capabilities of crypt(). Index: php4/ext/standard/crypt.c diff -u php4/ext/standard/crypt.c:1.21 php4/ext/standard/crypt.c:1.22 --- php4/ext/standard/crypt.c:1.21 Mon Mar 6 12:37:11 2000 +++ php4/ext/standard/crypt.c Fri May 5 03:36:00 2000 @@ -17,7 +17,7 @@ | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $Id: crypt.c,v 1.21 2000/03/06 20:37:11 ssb Exp $ */ +/* $Id: crypt.c,v 1.22 2000/05/05 10:36:00 sas Exp $ */ #include <stdlib.h> #include "php.h" @@ -68,6 +68,17 @@ #if PHP_BLOWFISH_CRYPT #undef PHP_MAX_SALT_LEN #define PHP_MAX_SALT_LEN 17 +#endif + + /* + * If the configure-time checks fail, we provide DES. + * XXX: This is a hack. Fix the real problem + */ + +#ifndef PHP_MAX_SALT_LEN +#define PHP_MAX_SALT_LEN 2 +#undef PHP_STD_DES_CRYPT +#define PHP_STD_DES_CRYPT 1 #endif #if HAVE_LRAND48

« previous php.version4 (#14512) next »