From f43ff5448679d75503e40b5c00104618b2a8e727 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 29 Apr 2016 08:02:24 +0000 Subject: [PATCH] ab: follow up to r1738415: EC_curve_nid2nist() available in OpenSSL-1.0.2 and later. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1741566 13f79535-47bb-0310-9956-ffa450edef68 --- support/ab.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support/ab.c b/support/ab.c index aa75dcf48e..d7cf8decff 100644 --- a/support/ab.c +++ b/support/ab.c @@ -725,11 +725,13 @@ static void ssl_proceed_handshake(struct connection *c) break; #ifndef OPENSSL_NO_EC case EVP_PKEY_EC: { - const char *cname; + const char *cname = NULL; EC_KEY *ec = EVP_PKEY_get1_EC_KEY(key); int nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(ec)); EC_KEY_free(ec); +#if OPENSSL_VERSION_NUMBER >= 0x10002000L cname = EC_curve_nid2nist(nid); +#endif if (!cname) cname = OBJ_nid2sn(nid); -- 2.40.0