Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2018-01-06 19:06:51 +0300
committerJonathan White <support@dmapps.us>2018-01-13 22:24:57 +0300
commitccfd7a065c821b3075144f497ddff6b4c80598f1 (patch)
treeb5afccecd7d4aacd6f5c4decb581d64de63c6dd4 /src/format/KeePass2.cpp
parent54fb0d9bd331d6f5567360e772a4e1b44587a75b (diff)
Fix coding style and GUI test
Diffstat (limited to 'src/format/KeePass2.cpp')
-rw-r--r--src/format/KeePass2.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/format/KeePass2.cpp b/src/format/KeePass2.cpp
index f89e828a1..88286a051 100644
--- a/src/format/KeePass2.cpp
+++ b/src/format/KeePass2.cpp
@@ -89,7 +89,8 @@ QSharedPointer<Kdf> KeePass2::uuidToKdf(const Uuid& uuid)
{
if (uuid == KDF_AES) {
return QSharedPointer<AesKdf>::create();
- } else if (uuid == KDF_ARGON2) {
+ }
+ if (uuid == KDF_ARGON2) {
return QSharedPointer<Argon2Kdf>::create();
}
@@ -100,13 +101,13 @@ QSharedPointer<Kdf> KeePass2::uuidToKdf(const Uuid& uuid)
KeePass2::ProtectedStreamAlgo KeePass2::idToProtectedStreamAlgo(quint32 id)
{
switch (id) {
- case static_cast<quint32>(KeePass2::ArcFourVariant):
- return KeePass2::ArcFourVariant;
- case static_cast<quint32>(KeePass2::Salsa20):
- return KeePass2::Salsa20;
- case static_cast<quint32>(KeePass2::ChaCha20):
- return KeePass2::ChaCha20;
+ case static_cast<quint32>(KeePass2::ProtectedStreamAlgo::ArcFourVariant):
+ return KeePass2::ProtectedStreamAlgo::ArcFourVariant;
+ case static_cast<quint32>(KeePass2::ProtectedStreamAlgo::Salsa20):
+ return KeePass2::ProtectedStreamAlgo::Salsa20;
+ case static_cast<quint32>(KeePass2::ProtectedStreamAlgo::ChaCha20):
+ return KeePass2::ProtectedStreamAlgo::ChaCha20;
default:
- return KeePass2::InvalidProtectedStreamAlgo;
+ return KeePass2::ProtectedStreamAlgo::InvalidProtectedStreamAlgo;
}
}