]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Throw is pubKeyHash fails
authorAki Tuomi <cmouse@cmouse.fi>
Sun, 29 Mar 2015 17:37:05 +0000 (20:37 +0300)
committerAki Tuomi <cmouse@desteem.org>
Mon, 30 Mar 2015 07:30:26 +0000 (10:30 +0300)
pdns/pkcs11signers.cc

index df3a64aed9803ae3465a9491b95521c38af92eaa..45639fe26a5c57f70a8307e9efa8fe35b9405a58 100644 (file)
@@ -808,7 +808,7 @@ std::string PKCS11DNSCryptoKeyEngine::getPubKeyHash() const {
 
   std::string result;
   if (d_slot->DigestKey(result) == 0) return result;
-  return "";
+  throw PDNSException("Could not digest key (maybe it's missing?)");
 };
 
 std::string PKCS11DNSCryptoKeyEngine::getPublicKeyString() const {