summaryrefslogtreecommitdiff
blob: 327e19a0c11b6d18cea6cb4012732a12275d6fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
http://bugs.gentoo.org/304283

--- a/crypto/wvx509.cc
+++ b/crypto/wvx509.cc
@@ -1157,7 +1157,11 @@
         
         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;