summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClemens Lang <cllang@redhat.com>2022-07-05 17:31:11 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-07-06 09:16:15 +0900
commit9d6203532d9012ff82aa218bd1a17797cf8017e5 (patch)
tree766c54b04b9789f749bac79713b3394abaaed5a8 /tests
parente2a7a0c9f5d258051b26babeac20e4a7cfb5a6ac (diff)
downloadlibgcrypt-9d6203532d9012ff82aa218bd1a17797cf8017e5.tar.gz
tests/basic: Skip non-FIPS tests in FIPS mode
* tests/basic.c (check_pubkey): Skip non-FIPS tests in FIPS mode, fixes a logic error previously introduced in e9698002. -- e96980022e5ec079c9d4e3492eb6a1131c68e0f2 did change the behavior of tests/basic.c to actually run non-FIPS tests in FIPS mode because the 'continue' statement was moved into the else block. This fails when libgcrypt is configured, for example, without support for RSA. GnuPG-bug-id: 6048 Signed-off-by: Clemens Lang <cllang@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic.c b/tests/basic.c
index ecbe58c2..3cf5ee2f 100644
--- a/tests/basic.c
+++ b/tests/basic.c
@@ -17098,8 +17098,8 @@ check_pubkey (void)
else
{
show_pk_not_available (pubkeys[i].id);
- continue;
}
+ continue;
}
check_one_pubkey (i, pubkeys[i]);
}