]> granicus.if.org Git - apache/commitdiff
ab: follow up to r1738415: handle any tmp key id.
authorYann Ylavic <ylavic@apache.org>
Thu, 15 Mar 2018 22:17:15 +0000 (22:17 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 15 Mar 2018 22:17:15 +0000 (22:17 +0000)
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

index 273654586c6c653fdd07013e2cfac80be7eaea80..a7c4df8c6cc8b52e01ddcbd6223228535256a55b 100644 (file)
@@ -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);
                 }