Fix incorrect #ifdef

fixes #12749
This commit is contained in:
Gunnar Beutner 2016-09-28 08:30:47 +02:00
parent 61765c095c
commit 0df4b4edfb
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ void SetTlsProtocolminToSSLContext(const boost::shared_ptr<SSL_CTX>& context, co
if (tlsProtocolmin == SSL_TXT_TLSV1_1)
flags |= SSL_OP_NO_TLSv1;
else
#elif defined(SSL_TXT_TLSV1_2)
#endif /* SSL_TXT_TLSV1_1 */
#ifdef SSL_TXT_TLSV1_2
if (tlsProtocolmin == SSL_TXT_TLSV1_2)
flags |= SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1;
else