Commit b0dfec1a authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] corrected the what() string when throwing UnsupportedAlgorithm from

the HMACImpl constructor.
okayed on jabber, directly pushing.
parent 496a4378
......@@ -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());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment