summaryrefslogtreecommitdiff
path: root/tests/unit/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-20 06:56:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-20 06:56:56 +0200
commit91bb1ebf5d051a80cd0e9e2e0bce820f2fef0e3c (patch)
tree88178794f09af982f55cac4dc39c4fca4e4f7cda /tests/unit/core
parent439410a3885e2bf21218c0030ef5665b1869a383 (diff)
downloadweechat-91bb1ebf5d051a80cd0e9e2e0bce820f2fef0e3c.zip
tests: fix condition on libgcrypt version for algorithms `sha512-224` and `sha512-256` (issue #2008)
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/test-core-crypto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/core/test-core-crypto.cpp b/tests/unit/core/test-core-crypto.cpp
index 7a77a27a2..61eb29ebc 100644
--- a/tests/unit/core/test-core-crypto.cpp
+++ b/tests/unit/core/test-core-crypto.cpp
@@ -364,7 +364,7 @@ TEST(CoreCrypto, HashFile)
WEE_CHECK_HASH_FILE(1, DATA_HASH_SHA256, filename, GCRY_MD_SHA256);
WEE_CHECK_HASH_FILE(1, DATA_HASH_SHA384, filename, GCRY_MD_SHA384);
WEE_CHECK_HASH_FILE(1, DATA_HASH_SHA512, filename, GCRY_MD_SHA512);
-#if GCRYPT_VERSION_NUMBER >= 0x010700
+#if GCRYPT_VERSION_NUMBER >= 0x010904
WEE_CHECK_HASH_FILE(1, DATA_HASH_SHA512_224, filename, GCRY_MD_SHA512_224);
WEE_CHECK_HASH_FILE(1, DATA_HASH_SHA512_256, filename, GCRY_MD_SHA512_256);
#endif