You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/omniORB/files/omniORB-4.1.4-openssl-1.patch

32 lines
770 B

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();
}