From: Aki Tuomi Date: Sun, 29 Mar 2015 17:37:05 +0000 (+0300) Subject: Throw is pubKeyHash fails X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~98^2~33^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9cd38ef1f0ce9c72b26675de18657102cb0a7401;p=thirdparty%2Fpdns.git Throw is pubKeyHash fails --- diff --git a/pdns/pkcs11signers.cc b/pdns/pkcs11signers.cc index df3a64aed9..45639fe26a 100644 --- a/pdns/pkcs11signers.cc +++ b/pdns/pkcs11signers.cc @@ -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 {