]> granicus.if.org Git - pdns/commitdiff
Emit error if hashing fails on PKCS#11 token
authorAki Tuomi <cmouse@cmouse.fi>
Sun, 17 May 2015 14:10:16 +0000 (17:10 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Sun, 17 May 2015 15:09:44 +0000 (18:09 +0300)
pdns/pkcs11signers.cc

index 0a3380b36fddfee33379c4db530dc13769e2469b..f19b7022d6341346b7f3fcc022937b4dbf4a4c13 100644 (file)
@@ -760,6 +760,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: {