aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs/passhash/passhash9.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/constructs/passhash/passhash9.cpp')
-rw-r--r--src/constructs/passhash/passhash9.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/constructs/passhash/passhash9.cpp b/src/constructs/passhash/passhash9.cpp
index adde40ed5..1834ed949 100644
--- a/src/constructs/passhash/passhash9.cpp
+++ b/src/constructs/passhash/passhash9.cpp
@@ -62,7 +62,8 @@ std::string generate_passhash9(const std::string& pass,
MessageAuthenticationCode* prf = get_pbkdf_prf(alg_id);
if(!prf)
- throw Invalid_Argument("Passhash9: Algorithm id " + to_string(alg_id) +
+ throw Invalid_Argument("Passhash9: Algorithm id " +
+ std::to_string(alg_id) +
" is not defined");
PKCS5_PBKDF2 kdf(prf); // takes ownership of pointer