diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2019-06-05 15:14:49 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-06-13 16:28:25 +0200 |
commit | 92a0d23eac7fe57ce054171caee720aaab10b7d0 (patch) | |
tree | c45486e79aa5b174211a91f5a57f1feeabeb912f /tests/client | |
parent | 1a6ac291a7858e5e6df54911f48f2216d5383b69 (diff) | |
download | libssh-92a0d23eac7fe57ce054171caee720aaab10b7d0.tar.gz libssh-92a0d23eac7fe57ce054171caee720aaab10b7d0.tar.xz libssh-92a0d23eac7fe57ce054171caee720aaab10b7d0.zip |
tests/torture_hostkey: Skip some tests in FIPS mode
Skip tests using non allowed algorithms.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/client')
-rw-r--r-- | tests/client/torture_hostkey.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/client/torture_hostkey.c b/tests/client/torture_hostkey.c index f886f8c4..574a8400 100644 --- a/tests/client/torture_hostkey.c +++ b/tests/client/torture_hostkey.c @@ -88,6 +88,10 @@ static void torture_hostkey_rsa(void **state) { int rc; + if (ssh_fips_mode()) { + skip(); + } + rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &rsa); assert_ssh_return_code(session, rc); @@ -107,6 +111,10 @@ static void torture_hostkey_ed25519(void **state) { int rc; + if (ssh_fips_mode()) { + skip(); + } + rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &ed); assert_ssh_return_code(session, rc); @@ -127,6 +135,10 @@ static void torture_hostkey_dss(void **state) { int rc; + if (ssh_fips_mode()) { + skip(); + } + rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &rsa); assert_ssh_return_code(session, rc); |