summaryrefslogtreecommitdiff
path: root/ext/openssl/php_openssl.h
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2016-02-29 20:07:03 +0000
committerJakub Zelenka <bukka@php.net>2016-07-17 17:33:42 +0100
commit84a291d4dac1a666dd961f68f87554ab37824c7e (patch)
treef96b450a0f76d8820458f043fdf88f12155cd2cd /ext/openssl/php_openssl.h
parentfd9142a64744958997f7c9611ef6277c57172933 (diff)
downloadphp-git-84a291d4dac1a666dd961f68f87554ab37824c7e.tar.gz
Wrap pkey id and rsa getters
Diffstat (limited to 'ext/openssl/php_openssl.h')
-rw-r--r--ext/openssl/php_openssl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/php_openssl.h b/ext/openssl/php_openssl.h
index 03f8953985..9407e50d23 100644
--- a/ext/openssl/php_openssl.h
+++ b/ext/openssl/php_openssl.h
@@ -132,6 +132,10 @@ PHP_FUNCTION(openssl_get_cert_locations);
#endif
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa
+#endif
+
#endif
/*