]> granicus.if.org Git - php/commitdiff
Add missing X509_get_signature_nid for 1.0.1
authorJakub Zelenka <bukka@php.net>
Tue, 19 Jul 2016 19:12:28 +0000 (20:12 +0100)
committerJakub Zelenka <bukka@php.net>
Tue, 19 Jul 2016 19:13:13 +0000 (20:13 +0100)
ext/openssl/openssl.c

index 326e32ea274497102e6c5fb304b487a515a62aa8..e01d4a50e600dcd0fce43d956162eeccda085892 100644 (file)
@@ -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
 /* }}} */