From 731b9cbe4854d8772b441b877ca076dfa4e42759 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Thu, 15 Mar 2018 22:17:15 +0000 Subject: [PATCH] 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 --- support/ab.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.47.3