summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-03-02 21:49:30 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-03-02 21:49:30 +0100
commit2d7829b2d5784fc5812ffede90036d01dc23b77f (patch)
treef6cabaac22360e0b515153600b23ca4e2e30a825 /tests
parentc6757f642f4d73e0ffa530aac986d33aa632c04d (diff)
downloadweechat-2d7829b2d5784fc5812ffede90036d01dc23b77f.zip
core: require libgcrypt >= 1.7.0 for SHA3 algorithms
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/core/test-core-crypto.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-crypto.cpp b/tests/unit/core/test-core-crypto.cpp
index 9bab485e6..d8a387d63 100644
--- a/tests/unit/core/test-core-crypto.cpp
+++ b/tests/unit/core/test-core-crypto.cpp
@@ -161,10 +161,12 @@ TEST(CoreCrypto, Hash)
WEE_CHECK_HASH(1, DATA_HASH_SHA256, data, data_size, GCRY_MD_SHA256);
WEE_CHECK_HASH(1, DATA_HASH_SHA384, data, data_size, GCRY_MD_SHA384);
WEE_CHECK_HASH(1, DATA_HASH_SHA512, data, data_size, GCRY_MD_SHA512);
+#if GCRYPT_VERSION_NUMBER >= 0x010700
WEE_CHECK_HASH(1, DATA_HASH_SHA3_224, data, data_size, GCRY_MD_SHA3_224);
WEE_CHECK_HASH(1, DATA_HASH_SHA3_256, data, data_size, GCRY_MD_SHA3_256);
WEE_CHECK_HASH(1, DATA_HASH_SHA3_384, data, data_size, GCRY_MD_SHA3_384);
WEE_CHECK_HASH(1, DATA_HASH_SHA3_512, data, data_size, GCRY_MD_SHA3_512);
+#endif
}
/*