diff options
author | Leigh <leigh@php.net> | 2016-10-04 13:20:36 +0100 |
---|---|---|
committer | Leigh <leigh@php.net> | 2016-10-04 13:20:36 +0100 |
commit | bc4676e050f7253421cb51a58b6c5178aea81ea7 (patch) | |
tree | 7213af2d693050f92a4b82f6f9f0ccbe263bde9a /ext/mcrypt/php_mcrypt.h | |
parent | 3f04ee0b8b15987de83e0cfcba00481a1aec40b9 (diff) | |
download | php-git-bc4676e050f7253421cb51a58b6c5178aea81ea7.tar.gz |
Remove mcrypt
Diffstat (limited to 'ext/mcrypt/php_mcrypt.h')
-rw-r--r-- | ext/mcrypt/php_mcrypt.h | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/ext/mcrypt/php_mcrypt.h b/ext/mcrypt/php_mcrypt.h deleted file mode 100644 index 438564219e..0000000000 --- a/ext/mcrypt/php_mcrypt.h +++ /dev/null @@ -1,94 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | PHP Version 7 | - +----------------------------------------------------------------------+ - | Copyright (c) 1997-2016 The PHP Group | - +----------------------------------------------------------------------+ - | This source file is subject to version 3.01 of the PHP license, | - | that is bundled with this package in the file LICENSE, and is | - | available through the world-wide-web at the following url: | - | http://www.php.net/license/3_01.txt | - | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Authors: Sascha Schumann <sascha@schumann.cx> | - | Derick Rethans <derick@derickrethans.nl> | - +----------------------------------------------------------------------+ - */ -/* $Id$ */ - -#ifndef PHP_MCRYPT_H -#define PHP_MCRYPT_H - -#if HAVE_LIBMCRYPT - -#ifdef ZTS -#include "TSRM.h" -#endif - -extern zend_module_entry mcrypt_module_entry; -#define mcrypt_module_ptr &mcrypt_module_entry - -#include "php_version.h" -#define PHP_MCRYPT_VERSION PHP_VERSION - -/* Functions for both old and new API */ -PHP_FUNCTION(mcrypt_ecb); -PHP_FUNCTION(mcrypt_cbc); -PHP_FUNCTION(mcrypt_cfb); -PHP_FUNCTION(mcrypt_ofb); -PHP_FUNCTION(mcrypt_get_cipher_name); -PHP_FUNCTION(mcrypt_get_block_size); -PHP_FUNCTION(mcrypt_get_key_size); -PHP_FUNCTION(mcrypt_create_iv); - -/* Support functions for old API */ -PHP_FUNCTION(mcrypt_list_algorithms); -PHP_FUNCTION(mcrypt_list_modes); -PHP_FUNCTION(mcrypt_get_iv_size); -PHP_FUNCTION(mcrypt_encrypt); -PHP_FUNCTION(mcrypt_decrypt); - -/* Functions for new API */ -PHP_FUNCTION(mcrypt_module_open); -PHP_FUNCTION(mcrypt_generic_init); -PHP_FUNCTION(mcrypt_generic); -PHP_FUNCTION(mdecrypt_generic); -PHP_FUNCTION(mcrypt_generic_deinit); - -PHP_FUNCTION(mcrypt_enc_self_test); -PHP_FUNCTION(mcrypt_enc_is_block_algorithm_mode); -PHP_FUNCTION(mcrypt_enc_is_block_algorithm); -PHP_FUNCTION(mcrypt_enc_is_block_mode); -PHP_FUNCTION(mcrypt_enc_get_block_size); -PHP_FUNCTION(mcrypt_enc_get_key_size); -PHP_FUNCTION(mcrypt_enc_get_supported_key_sizes); -PHP_FUNCTION(mcrypt_enc_get_iv_size); -PHP_FUNCTION(mcrypt_enc_get_algorithms_name); -PHP_FUNCTION(mcrypt_enc_get_modes_name); -PHP_FUNCTION(mcrypt_module_self_test); -PHP_FUNCTION(mcrypt_module_is_block_algorithm_mode); -PHP_FUNCTION(mcrypt_module_is_block_algorithm); -PHP_FUNCTION(mcrypt_module_is_block_mode); -PHP_FUNCTION(mcrypt_module_get_algo_block_size); -PHP_FUNCTION(mcrypt_module_get_algo_key_size); -PHP_FUNCTION(mcrypt_module_get_supported_key_sizes); -PHP_FUNCTION(mcrypt_module_close); - -ZEND_BEGIN_MODULE_GLOBALS(mcrypt) - int le_h; - char *modes_dir; - char *algorithms_dir; - int fd[2]; // RANDOM = 0, URANDOM = 1 -ZEND_END_MODULE_GLOBALS(mcrypt) - -#define MCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(mcrypt, v) - -#else -#define mcrypt_module_ptr NULL -#endif - -#define phpext_mcrypt_ptr mcrypt_module_ptr - -#endif |