Fix build when OpenSSL doesn't support SSL2/SSL3
PR: 195796
This commit is contained in:
parent
7791588006
commit
6003cb70d9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376647
1 changed files with 7 additions and 2 deletions
|
@ -1,20 +1,25 @@
|
|||
--- src/SOAPSSLContext.cpp.orig
|
||||
--- src/SOAPSSLContext.cpp.orig 2005-09-24 07:24:24 UTC
|
||||
+++ src/SOAPSSLContext.cpp
|
||||
@@ -143,16 +143,16 @@
|
||||
@@ -142,17 +142,21 @@ SSL_METHOD* SOAPSSLContext::getMethod(Me
|
||||
|
||||
switch(methodType)
|
||||
{
|
||||
+#ifndef OPENSSL_NO_SSL2
|
||||
case SOAPSSLContext::SSL_v2:
|
||||
- method = SSLv2_client_method();
|
||||
+ method = const_cast<SSL_METHOD*>(SSLv2_client_method());
|
||||
break;
|
||||
+#endif
|
||||
case SOAPSSLContext::SSL_v23:
|
||||
- method = SSLv23_client_method();
|
||||
+ method = const_cast<SSL_METHOD*>(SSLv23_client_method());
|
||||
break;
|
||||
+#ifndef OPENSSL_NO_SSL3_METHOD
|
||||
case SOAPSSLContext::SSL_v3:
|
||||
- method = SSLv3_client_method();
|
||||
+ method = const_cast<SSL_METHOD*>(SSLv3_client_method());
|
||||
break;
|
||||
+#endif
|
||||
case SOAPSSLContext::TLS_v1:
|
||||
- method = TLSv1_client_method();
|
||||
+ method = const_cast<SSL_METHOD*>(TLSv1_client_method());
|
||||
|
|
Loading…
Reference in a new issue