diff options
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/session.h b/src/session.h index ce1b69a3..c83be644 100644 --- a/src/session.h +++ b/src/session.h @@ -163,11 +163,6 @@ public: data_files.push_back(str); }); - enum hash_type_t { - NO_HASHES = 0, - HASH_SHA512 = 1 - }; - OPTION__ (session_t, hashes_, hash_type_t hash_type = NO_HASHES; @@ -175,6 +170,8 @@ public: DO_(str) { if (str == "sha512" || str == "SHA512") { hash_type = HASH_SHA512; + } else if (str == "sha512_256" || str == "SHA512_256") { + hash_type = HASH_SHA512_256; } else { throw_(std::invalid_argument, _f("Unrecognized hash type")); } |