Skip to content

Commit c163d41

Browse files
committed
Throw is pubKeyHash fails
1 parent f52c7f6 commit c163d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdns/pkcs11signers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ std::string PKCS11DNSCryptoKeyEngine::getPubKeyHash() const {
806806

807807
std::string result;
808808
if (d_slot->DigestKey(result) == 0) return result;
809-
return "";
809+
throw PDNSException("Could not digest key (maybe it's missing?)");
810810
};
811811

812812
std::string PKCS11DNSCryptoKeyEngine::getPublicKeyString() const {

0 commit comments

Comments
 (0)