From ef96ab1f9c275a009b95166093bfa29ffd759949 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 17 Feb 2016 22:07:51 +0100 Subject: [PATCH] report OpenSSL RSA keysize in bits --- pdns/opensslsigners.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/opensslsigners.cc b/pdns/opensslsigners.cc index 5b4327fbb..49679f8c5 100644 --- a/pdns/opensslsigners.cc +++ b/pdns/opensslsigners.cc @@ -88,7 +88,7 @@ public: } string getName() const { return "OpenSSL RSA"; } - int getBits() const { return RSA_size(d_key); } + int getBits() const { return RSA_size(d_key) << 3; } void create(unsigned int bits); storvector_t convertToISCVector() const; -- 2.40.0