diff options
author | Jakub Zelenka <bukka@php.net> | 2016-07-19 20:12:28 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-07-19 20:13:13 +0100 |
commit | 98ac90b7e252f35e6b5500cc0fa56914dcc350f0 (patch) | |
tree | 8f3e1a4c9517d135c8cf0b9989de703360a9ee20 | |
parent | d8580cb286bbe2f4eb29616534882c73aa4882d7 (diff) | |
download | php-git-98ac90b7e252f35e6b5500cc0fa56914dcc350f0.tar.gz |
Add missing X509_get_signature_nid for 1.0.1
-rw-r--r-- | ext/openssl/openssl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 326e32ea27..e01d4a50e6 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -669,6 +669,15 @@ int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) return 1; } +#if OPENSSL_VERSION_NUMBER < 0x10002000L + +static int X509_get_signature_nid(const X509 *x) +{ + return OBJ_obj2nid(x->sig_alg->algorithm); +} + +#endif + #endif /* }}} */ |