From: Yann Ylavic Date: Fri, 29 Apr 2016 08:02:24 +0000 (+0000) Subject: ab: follow up to r1738415: EC_curve_nid2nist() available in OpenSSL-1.0.2 and later. X-Git-Tag: 2.5.0-alpha~1680 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f43ff5448679d75503e40b5c00104618b2a8e727;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/support/ab.c b/support/ab.c index aa75dcf48e0..d7cf8decff5 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);