1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__contrib__ssl_connection.cpp
Pawel Pekala 0738863699 Fix build on 10-current
PR:		ports/181879
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-10-28 17:23:35 +00:00

15 lines
376 B
C++

--- ulxmlrpcpp/contrib/ssl_connection.cpp.orig
+++ ulxmlrpcpp/contrib/ssl_connection.cpp
@@ -227,7 +227,11 @@
if (ssl_ctx != 0)
SSL_CTX_free(ssl_ctx);
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const SSL_METHOD *meth = SSLv23_method();
+#else
SSL_METHOD *meth = SSLv23_method();
+#endif
ssl_ctx = SSL_CTX_new (meth);