Permalink
Browse files

Emit error if hashing fails on PKCS#11 token

  • Loading branch information...
1 parent ba4d623 commit 68b48348de428ca22f05ac56aca49cf6610a80dd @cmouse cmouse committed May 17, 2015
Showing with 1 addition and 0 deletions.
  1. +1 −0 pdns/pkcs11signers.cc
@@ -758,6 +758,7 @@ std::string PKCS11DNSCryptoKeyEngine::hash(const std::string& msg) const {
throw PDNSException("Not logged in to token");
if (d_slot->Digest(msg, result, &mech)) {
+ L<<Logger::Error<<"Could not digest using PKCS#11 token - using software workaround"<<endl;
// FINE! I'll do this myself, then, shall I?
switch(d_algorithm) {
case 5: {

0 comments on commit 68b4834

Please sign in to comment.