diff options
Diffstat (limited to 'src/fdosecrets/objects/Session.cpp')
-rw-r--r-- | src/fdosecrets/objects/Session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fdosecrets/objects/Session.cpp b/src/fdosecrets/objects/Session.cpp index ad9ac4075..4845752a1 100644 --- a/src/fdosecrets/objects/Session.cpp +++ b/src/fdosecrets/objects/Session.cpp @@ -68,9 +68,9 @@ namespace FdoSecrets incomplete = false; std::unique_ptr<CipherPair> cipher{}; - if (algorithm == QLatin1Literal("plain")) { + if (algorithm == QLatin1String(PlainCipher::Algorithm)) { cipher.reset(new PlainCipher); - } else if (algorithm == QLatin1Literal("dh-ietf1024-sha256-aes128-cbc-pkcs7")) { + } else if (algorithm == QLatin1String(DhIetf1024Sha256Aes128CbcPkcs7::Algorithm)) { QByteArray clientPublicKey = input.toByteArray(); cipher.reset(new DhIetf1024Sha256Aes128CbcPkcs7(clientPublicKey)); } else { |