linphone: fix build without NLS enabled
[openembedded.git] / recipes / gsoap / gsoap-2.7.13 / gsoap-2.7-openssl.patch
blob443fb694bbdb1a683cfd4da356fd26e0ae008581
1 diff -up gsoap-2.7/gsoap/stdsoap2.cpp.openssl gsoap-2.7/gsoap/stdsoap2.cpp
2 --- gsoap-2.7/gsoap/stdsoap2.cpp.openssl 2008-10-02 19:36:28.000000000 +0200
3 +++ gsoap-2.7/gsoap/stdsoap2.cpp 2009-08-22 22:20:49.000000000 +0200
4 @@ -4153,7 +4153,12 @@ again:
5 { X509_EXTENSION *ext = X509_get_ext(peer, i);
6 const char *ext_str = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
7 if (ext_str && !strcmp(ext_str, "subjectAltName"))
8 - { X509V3_EXT_METHOD *meth = X509V3_EXT_get(ext);
9 + {
10 +#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
11 + const X509V3_EXT_METHOD *meth = X509V3_EXT_get(ext);
12 +#else
13 + X509V3_EXT_METHOD *meth = X509V3_EXT_get(ext);
14 +#endif
15 void *ext_data;
16 #if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
17 const unsigned char *data;