From: Yann Ylavic Date: Thu, 15 Mar 2018 22:17:15 +0000 (+0000) Subject: ab: follow up to r1738415: handle any tmp key id. X-Git-Tag: 2.5.0-alpha2-ci-test-only~2789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=731b9cbe4854d8772b441b877ca076dfa4e42759;p=thirdparty%2Fapache%2Fhttpd.git ab: follow up to r1738415: handle any tmp key id. Otherwise, we print garbage (e.g. for X25519). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1826880 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index 273654586c6..a7c4df8c6cc 100644 --- a/support/ab.c +++ b/support/ab.c @@ -764,6 +764,11 @@ static void ssl_proceed_handshake(struct connection *c) break; } #endif + default: + apr_snprintf(ssl_tmp_key, 128, "%s %d bits", + OBJ_nid2sn(EVP_PKEY_id(key)), + EVP_PKEY_bits(key)); + break; } EVP_PKEY_free(key); }