Fix build with openssl from ports

PR:		ports/163712
Reported by:	Anthony Chavez <acc@hexadecagram.org>
This commit is contained in:
Pawel Pekala 2012-01-10 19:10:15 +00:00
parent 66b5124126
commit 2c1c46ab77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288909

View file

@ -0,0 +1,14 @@
--- ace/SSL/SSL_Context.cpp.orig 2012-01-10 18:04:45.000000000 +0100
+++ ace/SSL/SSL_Context.cpp 2012-01-10 18:17:42.000000000 +0100
@@ -231,7 +231,11 @@
if (this->context_ != 0)
return -1;
+#if OPENSSL_VERSION_NUMBER < 0x1000000f
SSL_METHOD *method = 0;
+#else
+ const SSL_METHOD *method = 0;
+#endif
switch (mode)
{