summaryrefslogtreecommitdiffstats
path: root/extra/libmsn/openssl1.patch
blob: 0ff7de8987af2773814476d022671fa8d9cf4ea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- libmsn-4.1/msntest/msntest.cpp~	2010-04-01 15:05:13.248056050 +0200
+++ libmsn-4.1/msntest/msntest.cpp	2010-04-01 15:07:18.938878993 +0200
@@ -259,7 +259,13 @@
                     if(mySocketsSsl[i].isSSL && !mySocketsSsl[i].isConnected)
                     {
                         BIO *bio_socket_new;
-                        SSL_METHOD *meth=NULL;
+
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+			const SSL_METHOD *meth=NULL;
+#else
+			SSL_METHOD *meth=NULL;
+#endif
+
                         meth=SSLv23_client_method();
                         SSLeay_add_ssl_algorithms();
                         mySocketsSsl[i].ctx = SSL_CTX_new(meth);