changeset 849:2743d36bccb0

workaround for openssl 1.0.0 compatibility http://sourceforge.net/tracker/index.php?func=detail&aid=2902262&group_id=52781&atid=468021
author Mark Brand <mabrand@mabrand.nl>
date Sun, 11 Apr 2010 20:23:17 +0200
parents 4fef75e26b44
children 6840fda6a689
files src/gsoap-openssl.patch
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/gsoap-openssl.patch	Sun Apr 11 20:23:17 2010 +0200
@@ -0,0 +1,17 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+diff -urN a/gsoap/stdsoap2.cpp b/gsoap/stdsoap2.cpp
+--- a/gsoap/stdsoap2.cpp	2010-04-06 18:23:14.000000000 +0200
++++ b/gsoap/stdsoap2.cpp	2010-04-11 20:09:50.858167983 +0200
+@@ -3998,7 +3998,9 @@
+           { X509_EXTENSION *ext = X509_get_ext(peer, i);
+             const char *ext_str = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
+             if (ext_str && !strcmp(ext_str, "subjectAltName"))
+-            { X509V3_EXT_METHOD *meth = X509V3_EXT_get(ext);
++            //cast works around problem described at
++            //http://sourceforge.net/tracker/index.php?func=detail&aid=2902262&group_id=52781&atid=468021
++            { X509V3_EXT_METHOD *meth = (X509V3_EXT_METHOD*)X509V3_EXT_get(ext);
+               void *ext_data;
+ #if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
+               const unsigned char *data;