rdmenezes / wvstreams

Automatically exported from code.google.com/p/wvstreams
0 stars 0 forks source link

Compilation with openssl 1.0.0 beta versions #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Small fix for compilation with openssl 1.0.0 beta versions.

--- wvstreams-4.6.1/crypto/wvx509.cc    2008-10-23 22:23:49.000000000 +0200
+++ wvstreams-4.6.1-1/crypto/wvx509.cc  2010-01-27 11:09:06.000000000 +0100
@@ -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;

Original issue reported on code.google.com by hanno@hboeck.de on 27 Jan 2010 at 11:59