mirror of
https://github.com/php/php-src.git
synced 2025-01-18 09:43:36 +08:00
port
This commit is contained in:
parent
e205a6749d
commit
8ba3889572
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user