From: Fabian Keil Date: Mon, 15 Feb 2021 13:11:48 +0000 (+0100) Subject: OpenSSL ssl_store_cert(): Translate EVP_PKEY_EC to a string X-Git-Tag: v_3_0_33~105^2~12 X-Git-Url: http://www.privoxy.org/gitweb/show-status?a=commitdiff_plain;h=9f34addb5262b6f00b21129955fc327f158f05cf;p=privoxy.git OpenSSL ssl_store_cert(): Translate EVP_PKEY_EC to a string --- diff --git a/openssl.c b/openssl.c index 67e58e99..8a9824ae 100644 --- a/openssl.c +++ b/openssl.c @@ -501,8 +501,12 @@ static int ssl_store_cert(struct client_state *csp, X509 *crt) case EVP_PKEY_DSA: ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "DSA key size", EVP_PKEY_bits(pkey)); break; + case EVP_PKEY_EC: + ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "EC key size", EVP_PKEY_bits(pkey)); + break; default: - ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "non-RSA/DSA key size", EVP_PKEY_bits(pkey)); + ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "non-RSA/DSA/EC key size", + EVP_PKEY_bits(pkey)); break; } if (ret <= 0)