blob: 1c7005c2fec6cf47108b94780733fab525ebde6c [file] [log] [blame]
Index: wvstreams-4.6.1/crypto/wvx509.cc
===================================================================
--- wvstreams-4.6.1.orig/crypto/wvx509.cc
+++ wvstreams-4.6.1/crypto/wvx509.cc
@@ -1157,7 +1157,11 @@ WvString WvX509::get_extension(int nid)
if (ext)
{
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
+#else
X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
+#endif
if (!method)
{
WvDynBuf buf;