Commit 81221bf3 authored by Yann Ylavic's avatar Yann Ylavic
Browse files

mod_ssl: follow up to 2.4.x's r1666363.

Add missing bits from previous backport.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1835173 13f79535-47bb-0310-9956-ffa450edef68
parent 2a7c2ff5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1344,8 +1344,8 @@ static apr_status_t ssl_init_server_certs(server_rec *s,
#if defined(SSL_CTX_set_ecdh_auto)
        SSL_CTX_set_ecdh_auto(mctx->ssl_ctx, 1);
#else
        SSL_CTX_set_tmp_ecdh(mctx->ssl_ctx,
                             EC_KEY_new_by_curve_name(NID_X9_62_prime256v1));
        eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
        SSL_CTX_set_tmp_ecdh(mctx->ssl_ctx, eckey);
#endif
    }
#endif