diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-10-31 19:50:42 +0100 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-10-31 20:05:32 +0100 |
| commit | 7b46c85e651a0fba7d4c14d2ae1fa766ed306a77 (patch) | |
| tree | 62bf72da60f9a6152de53a13894b49e15df9fb0a /tests | |
| parent | e2cf93b29007afb4e71a5591c50843be9ad58adc (diff) | |
| download | qxmpp-7b46c85e651a0fba7d4c14d2ae1fa766ed306a77.tar.gz | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/qxmppsasl/tst_qxmppsasl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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", |
