h2load: Show custom server temp key such as X25519
This commit is contained in:
parent
5108193d7b
commit
c28900990a
|
@ -595,7 +595,8 @@ void print_server_tmp_key(SSL *ssl) {
|
||||||
|
|
||||||
std::cout << "Server Temp Key: ";
|
std::cout << "Server Temp Key: ";
|
||||||
|
|
||||||
switch (EVP_PKEY_id(key)) {
|
auto pkey_id = EVP_PKEY_id(key);
|
||||||
|
switch (pkey_id) {
|
||||||
case EVP_PKEY_RSA:
|
case EVP_PKEY_RSA:
|
||||||
std::cout << "RSA " << EVP_PKEY_bits(key) << " bits" << std::endl;
|
std::cout << "RSA " << EVP_PKEY_bits(key) << " bits" << std::endl;
|
||||||
break;
|
break;
|
||||||
|
@ -615,6 +616,10 @@ void print_server_tmp_key(SSL *ssl) {
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
std::cout << OBJ_nid2sn(pkey_id) << " " << EVP_PKEY_bits(key) << " bits"
|
||||||
|
<< std::endl;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
|
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue