This commit is contained in:
Sascha Schumann 1999-06-27 21:46:34 +00:00
parent e205a6749d
commit 8ba3889572

View File

@ -119,18 +119,18 @@ static mcrypt_global_struct mcryptg;
#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);