From 5338904824638124d78acf1efae0b046d3d6735b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 4 Apr 2019 09:32:17 -0700 Subject: [PATCH] unit: add check for SHA256/HMAC in SAE test --- unit/test-sae.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unit/test-sae.c b/unit/test-sae.c index 3de73762..81220d9c 100644 --- a/unit/test-sae.c +++ b/unit/test-sae.c @@ -550,6 +550,11 @@ int main(int argc, char *argv[]) goto done; } + if (!l_checksum_is_supported(L_CHECKSUM_SHA256, true)) { + l_info("SHA256/HMAC_SHA256 not supported, skipping..."); + goto done; + } + l_test_add("SAE commit timeout", test_commit_timeout, NULL); l_test_add("SAE confirm timeout", test_confirm_timeout, NULL); l_test_add("SAE anti-clogging", test_clogging, NULL);