]> granicus.if.org Git - icinga2/commitdiff
Respect OpenSSL 1.1.0 vs older 7315/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 12 Jul 2019 12:47:46 +0000 (14:47 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 12 Jul 2019 12:56:08 +0000 (14:56 +0200)
lib/base/tlsutility.cpp

index de4f7fc632c227097f028b4874d9d996d11be8b7..023fbe0d7522e7ecdaf533d5fa30e4714adde776 100644 (file)
@@ -177,6 +177,7 @@ void SetCipherListToSSLContext(const std::shared_ptr<boost::asio::ssl::context>&
                        << errinfo_openssl_error(ERR_peek_error()));
        }
 
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
        //With OpenSSL 1.1.0, there might not be any returned 0.
        STACK_OF(SSL_CIPHER) *ciphers;
        Array::Ptr cipherNames = new Array();
@@ -191,6 +192,7 @@ void SetCipherListToSSLContext(const std::shared_ptr<boost::asio::ssl::context>&
 
        Log(LogNotice, "TlsUtility")
                << "Available TLS cipher list: " << cipherNames->Join(" ");
+#endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */
 }
 
 /**