You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
638 B

28 years ago
28 years ago
28 years ago
28 years ago
28 years ago
  1. #ifndef PHP_MCRYPT_H
  2. #define PHP_MCRYPT_H
  3. #if HAVE_LIBMCRYPT
  4. #if PHP_API_VERSION < 19990421
  5. #define zend_module_entry zend_module_entry
  6. #include "modules.h"
  7. #include "internal_functions.h"
  8. #endif
  9. extern zend_module_entry mcrypt_module_entry;
  10. #define mcrypt_module_ptr &mcrypt_module_entry
  11. PHP_FUNCTION(mcrypt_ecb);
  12. PHP_FUNCTION(mcrypt_cbc);
  13. PHP_FUNCTION(mcrypt_cfb);
  14. PHP_FUNCTION(mcrypt_ofb);
  15. PHP_FUNCTION(mcrypt_get_cipher_name);
  16. PHP_FUNCTION(mcrypt_get_block_size);
  17. PHP_FUNCTION(mcrypt_get_key_size);
  18. PHP_FUNCTION(mcrypt_create_iv);
  19. #else
  20. #define mcrypt_module_ptr NULL
  21. #endif
  22. #define phpext_mcrypt_ptr mcrypt_module_ptr
  23. #endif