[Privoxy-commits] [privoxy] 03/15: OpenSSL ssl_store_cert(): Translate EVP_PKEY_EC to a string

User Git git at git.privoxy.org
Mon Mar 15 14:43:51 UTC 2021


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 9f34addb5262b6f00b21129955fc327f158f05cf
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Mon Feb 15 14:11:48 2021 +0100

    OpenSSL ssl_store_cert(): Translate EVP_PKEY_EC to a string
---
 openssl.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list