summaryrefslogtreecommitdiff
path: root/ext/openssl/php_openssl.h
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2011-05-20 18:56:13 +0000
committerScott MacVicar <scottmac@php.net>2011-05-20 18:56:13 +0000
commit30f19bd52434736daf5ea8a5b8ee74f9d676a4fc (patch)
treeb015d1c5fceff091fccfe36e0fab77505a809ebd /ext/openssl/php_openssl.h
parent1101293b3f78254cddc4492ef8e1216e9d1364b2 (diff)
downloadphp-git-30f19bd52434736daf5ea8a5b8ee74f9d676a4fc.tar.gz
Allow management of your own padding in openssl_encrypt/decrypt.
For using mcrypt / openssl interchangeabley managing your own padding is the only solution.
Diffstat (limited to 'ext/openssl/php_openssl.h')
-rw-r--r--ext/openssl/php_openssl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/php_openssl.h b/ext/openssl/php_openssl.h
index dc53eb1282..3b3d1e61a9 100644
--- a/ext/openssl/php_openssl.h
+++ b/ext/openssl/php_openssl.h
@@ -26,6 +26,9 @@
extern zend_module_entry openssl_module_entry;
#define phpext_openssl_ptr &openssl_module_entry
+#define OPENSSL_RAW_DATA 1
+#define OPENSSL_ZERO_PADDING 2
+
php_stream_transport_factory_func php_openssl_ssl_socket_factory;
PHP_MINIT_FUNCTION(openssl);