From 7b46c85e651a0fba7d4c14d2ae1fa766ed306a77 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 31 Oct 2020 19:50:42 +0100 Subject: Add SCRAM-SHA3-512 SASL algorithm QCryptographicHash::Sha3_512 was accidentially using Keccak-512 before Qt 5.9.2, thus we can only use SCRAM-SHA3-512 when using Qt >= 5.9.2. --- tests/qxmppsasl/tst_qxmppsasl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/qxmppsasl/tst_qxmppsasl.cpp b/tests/qxmppsasl/tst_qxmppsasl.cpp index 78367800..590c8c07 100644 --- a/tests/qxmppsasl/tst_qxmppsasl.cpp +++ b/tests/qxmppsasl/tst_qxmppsasl.cpp @@ -191,6 +191,9 @@ void tst_QXmppSasl::testSuccess() void tst_QXmppSasl::testClientAvailableMechanisms() { const QStringList expectedMechanisms = { +#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 2) + "SCRAM-SHA3-512", +#endif "SCRAM-SHA-512", "SCRAM-SHA-256", "SCRAM-SHA-1", -- cgit v1.2.3