summaryrefslogtreecommitdiff
path: root/net-misc/omniORB/files/omniORB-4.1.4-openssl-1.patch
blob: 968013a257811f50b005d5b83452b95be4d0f8d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
http://bugs.gentoo.org/326791

--- include/omniORB4/sslContext.h
+++ include/omniORB4/sslContext.h
@@ -111,7 +111,11 @@
   virtual ~sslContext();
 
  protected:
-  virtual SSL_METHOD* set_method(); 
+  #if OPENSSL_VERSION_NUMBER >= 0x10000000L
+  virtual const SSL_METHOD* set_method();
+  #else
+  virtual SSL_METHOD* set_method();
+  #endif
   // Default to return SSLv23_method().
 
   virtual void set_supported_versions(); 
--- src/lib/omniORB/orbcore/ssl/sslContext.cc
+++ src/lib/omniORB/orbcore/ssl/sslContext.cc
@@ -197,7 +197,11 @@
 }
 
 /////////////////////////////////////////////////////////////////////////
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+const SSL_METHOD*
+#else
 SSL_METHOD*
+#endif
 sslContext::set_method() {
   return SSLv23_method();
 }