Browse Source

[master] corrected the what() string when throwing UnsupportedAlgorithm from
the HMACImpl constructor.
okayed on jabber, directly pushing.

JINMEI Tatuya 14 years ago
parent
commit
b0dfec1a50
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/cryptolink/crypto_hmac.cc

+ 2 - 1
src/lib/cryptolink/crypto_hmac.cc

@@ -70,7 +70,8 @@ public:
                 getBotanHashAlgorithmName(hash_algorithm));
         } catch (const Botan::Algorithm_Not_Found&) {
             isc_throw(isc::cryptolink::UnsupportedAlgorithm,
-                      "Unknown hash algorithm: " + hash_algorithm);
+                      "Unknown hash algorithm: " <<
+                      static_cast<int>(hash_algorithm));
         } catch (const Botan::Exception& exc) {
             isc_throw(isc::cryptolink::LibraryError, exc.what());
         }