blob: 1c7005c2fec6cf47108b94780733fab525ebde6c [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001Index: wvstreams-4.6.1/crypto/wvx509.cc
2===================================================================
3--- wvstreams-4.6.1.orig/crypto/wvx509.cc
4+++ wvstreams-4.6.1/crypto/wvx509.cc
5@@ -1157,7 +1157,11 @@ WvString WvX509::get_extension(int nid)
6
7 if (ext)
8 {
9+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
10+ const X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
11+#else
12 X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
13+#endif
14 if (!method)
15 {
16 WvDynBuf buf;