aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-05-23 11:36:54 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-12 10:41:24 +0200
commit56041dc7840ade64b16c9c299bd64504daa79599 (patch)
tree30e44474eff195143b950683eb7d753089922be2 /tests
parent167aa8bc6cdf2a3e12b18a567b98deee23559932 (diff)
downloadlibssh-56041dc7840ade64b16c9c299bd64504daa79599.tar.gz
libssh-56041dc7840ade64b16c9c299bd64504daa79599.tar.xz
libssh-56041dc7840ade64b16c9c299bd64504daa79599.zip
torture_hashes: Skip the MD5 tests in FIPS mode
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/torture_hashes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unittests/torture_hashes.c b/tests/unittests/torture_hashes.c
index 5c700ee0..a3041409 100644
--- a/tests/unittests/torture_hashes.c
+++ b/tests/unittests/torture_hashes.c
@@ -57,6 +57,10 @@ static void torture_md5_hash(void **state)
size_t hlen;
int rc = 0;
+ if (ssh_fips_mode()) {
+ skip();
+ }
+
rc = ssh_get_publickey_hash(pubkey, SSH_PUBLICKEY_HASH_MD5,
(unsigned char **)&hash, &hlen);
if (ssh_fips_mode()) {