diff options
author | Yann Ylavic <ylavic@apache.org> | 2016-04-29 08:02:24 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2016-04-29 08:02:24 +0000 |
commit | f43ff5448679d75503e40b5c00104618b2a8e727 (patch) | |
tree | c93bc49335860ecccc114958972c07a7551745c0 /support | |
parent | b24c207ce975877eb8914e87a4528b634f2396f0 (diff) | |
download | httpd-f43ff5448679d75503e40b5c00104618b2a8e727.tar.gz |
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
Diffstat (limited to 'support')
-rw-r--r-- | support/ab.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |