Permalink
Browse files

Throw is pubKeyHash fails

  • Loading branch information...
1 parent f52c7f6 commit c163d412e2bc1d10b82b99d7a6703bf51966c234 @cmouse cmouse committed with cmouse Mar 29, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/pkcs11signers.cc
@@ -806,7 +806,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 {

0 comments on commit c163d41

Please sign in to comment.