diff options
author | Derick Rethans <derick@php.net> | 2003-01-03 19:49:44 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2003-01-03 19:49:44 +0000 |
commit | 419af9f12a5d85eb9eb1636ef4e0ae6c76d2d48b (patch) | |
tree | 3eefbe11d7f290f10ca7c37900be44a6a0e77463 /ext/mcrypt/php_mcrypt.h | |
parent | f99fa7170eb39d4604424fdefd1d6556a99fe6bb (diff) | |
download | php-git-419af9f12a5d85eb9eb1636ef4e0ae6c76d2d48b.tar.gz |
- Removed support for libmcrypt 2.2.x to allow cleaner code. Another reason
to upgrade libmcrypt to a 2.5.x series as the older ones have too much bugs
to be safely used with PHP.
- Updated macro's, php_errors and parameter parsing.
@- Removed support for libmcrypt 2.2.x to allow cleaner code. Another reason
@ to upgrade libmcrypt to a 2.5.x series as the older ones have too much bugs
@ to be safely used with PHP. (Derick)
Diffstat (limited to 'ext/mcrypt/php_mcrypt.h')
-rw-r--r-- | ext/mcrypt/php_mcrypt.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/ext/mcrypt/php_mcrypt.h b/ext/mcrypt/php_mcrypt.h index 21739d95c1..5846a77411 100644 --- a/ext/mcrypt/php_mcrypt.h +++ b/ext/mcrypt/php_mcrypt.h @@ -27,14 +27,7 @@ #include "TSRM.h" #endif -#if PHP_API_VERSION < 19990421 -#define zend_module_entry zend_module_entry -#include "zend_modules.h" -#include "internal_functions.h" -#endif - extern zend_module_entry mcrypt_module_entry; - #define mcrypt_module_ptr &mcrypt_module_entry /* Functions for both old and new API */ @@ -47,7 +40,6 @@ PHP_FUNCTION(mcrypt_get_block_size); PHP_FUNCTION(mcrypt_get_key_size); PHP_FUNCTION(mcrypt_create_iv); -#if HAVE_LIBMCRYPT24 /* Support functions for old API */ PHP_FUNCTION(mcrypt_list_algorithms); PHP_FUNCTION(mcrypt_list_modes); @@ -61,9 +53,8 @@ PHP_FUNCTION(mcrypt_generic_init); PHP_FUNCTION(mcrypt_generic); PHP_FUNCTION(mdecrypt_generic); PHP_FUNCTION(mcrypt_generic_end); -#if HAVE_MCRYPT_GENERIC_DEINIT PHP_FUNCTION(mcrypt_generic_deinit); -#endif + PHP_FUNCTION(mcrypt_enc_self_test); PHP_FUNCTION(mcrypt_enc_is_block_algorithm_mode); PHP_FUNCTION(mcrypt_enc_is_block_algorithm); @@ -90,11 +81,9 @@ ZEND_BEGIN_MODULE_GLOBALS(mcrypt) ZEND_END_MODULE_GLOBALS(mcrypt) #ifdef ZTS -# define MCG(v) TSRMG(mcrypt_globals_id, zend_mcrypt_globals *, v) +# define MCG(v) TSRMG(mcrypt_globals_id, zend_mcrypt_globals *, v) #else -# define MCG(v) (mcrypt_globals.v) -#endif - +# define MCG(v) (mcrypt_globals.v) #endif #else |