From: Kees Monshouwer Date: Wed, 17 Feb 2016 21:07:51 +0000 (+0100) Subject: report OpenSSL RSA keysize in bits X-Git-Tag: auth-4.0.0-alpha2~25^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3399%2Fhead;p=thirdparty%2Fpdns.git report OpenSSL RSA keysize in bits --- diff --git a/pdns/opensslsigners.cc b/pdns/opensslsigners.cc index 5b4327fbb8..49679f8c5e 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;