]> granicus.if.org Git - pdns/commitdiff
report OpenSSL RSA keysize in bits
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 17 Feb 2016 21:07:51 +0000 (22:07 +0100)
committermind04 <mind04@monshouwer.org>
Wed, 17 Feb 2016 21:14:09 +0000 (22:14 +0100)
pdns/opensslsigners.cc

index 5b4327fbb89aef10fd86fa3b8aee922456bfd8ee..49679f8c5e92e3d0e9f574d5f62a36b97d135fea 100644 (file)
@@ -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;