CVS update: php4/ext/mcrypt

From: Date: Sun, 27 Jun 1999 21:46:34 +0000
Subject: CVS update: php4/ext/mcrypt
Groups: php.version4 
Request: Send a blank email to php-version4+get-1703@lists.php.net to get a copy of this message
Date: Sunday June 27, 1999 @ 17:46 Author: sas Update of /repository/php4/ext/mcrypt In directory php:/tmp/cvs-serv3069/ext/mcrypt Modified Files: mcrypt.c Log Message: port Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.15 php4/ext/mcrypt/mcrypt.c:1.16 --- php4/ext/mcrypt/mcrypt.c:1.15 Fri May 21 04:20:12 1999 +++ php4/ext/mcrypt/mcrypt.c Sun Jun 27 17:46:34 1999 @@ -119,18 +119,18 @@ #define MCRYPT_IV_WRONG_SIZE "The IV paramater must be as long as the blocksize" #define MCRYPT_FAILED "mcrypt initialization failed" -#define MCRYPT_ENTRY(a) REGISTER_LONG_CONSTANT("MCRYPT_" #a, a, 0) +#define MCRYPT_ENTRY(a) REGISTER_LONG_CONSTANT("MCRYPT_" #a, a, CONST_PERSISTENT) static int php_minit_mcrypt(INIT_FUNC_ARGS) { /* modes for mcrypt_??? routines */ - REGISTER_LONG_CONSTANT("MCRYPT_ENCRYPT", 0, 0); - REGISTER_LONG_CONSTANT("MCRYPT_DECRYPT", 1, 0); + REGISTER_LONG_CONSTANT("MCRYPT_ENCRYPT", 0, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("MCRYPT_DECRYPT", 1, CONST_PERSISTENT); /* sources for mcrypt_create_iv */ - REGISTER_LONG_CONSTANT("MCRYPT_DEV_RANDOM", 0, 0); - REGISTER_LONG_CONSTANT("MCRYPT_DEV_URANDOM", 1, 0); - REGISTER_LONG_CONSTANT("MCRYPT_RAND", 2, 0); + REGISTER_LONG_CONSTANT("MCRYPT_DEV_RANDOM", 0, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("MCRYPT_DEV_URANDOM", 1, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("MCRYPT_RAND", 2, CONST_PERSISTENT); /* ciphers */ MCRYPT_ENTRY(BLOWFISH);

« previous php.version4 (#1703) next »