Unverified Commit b4e9e55e authored by robertomdv's avatar robertomdv Committed by GitHub

Update listener.cc (#770)

added GetSSLContext() at line  393 to prevent compilation with OpenSSL From fail  (see issue #769)
parent bf47f905
......@@ -390,7 +390,7 @@ ssl::SSLCtxPtr ssl_create_context(const std::string &cert,
/* Function introduced in 1.0.2 */
#if OPENSSL_VERSION_NUMBER >= 0x10002000L
SSL_CTX_set_ecdh_auto(ctx, 1);
SSL_CTX_set_ecdh_auto(GetSSLContext(ctx), 1);
#endif /* OPENSSL_VERSION_NUMBER */
if (SSL_CTX_use_certificate_file(GetSSLContext(ctx), cert.c_str(), SSL_FILETYPE_PEM) <= 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment