Merge pull request #7281 from Icinga/bugfix/openssl-1-0-1-7280

Use SSL_CTX_set_ecdh_auto only if available
This commit is contained in:
Michael Friedrich 2019-07-04 14:27:45 +02:00 committed by GitHub
commit 065067c8b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -74,7 +74,9 @@ static void SetupSslContext(SSL_CTX *sslContext, const String& pubkey, const Str
SSL_CTX_set_session_id_context(sslContext, (const unsigned char *)"Icinga 2", 8);
// Explicitly load ECC ciphers, required on el7 - https://github.com/Icinga/icinga2/issues/7247
#ifdef SSL_CTX_set_ecdh_auto
SSL_CTX_set_ecdh_auto(sslContext, 1);
#endif /* SSL_CTX_set_ecdh_auto */
if (!pubkey.IsEmpty()) {
if (!SSL_CTX_use_certificate_chain_file(sslContext, pubkey.CStr())) {