Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | Index: 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; |