mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
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>
This commit is contained in:
committed by
Andreas Schneider
parent
1a6ac291a7
commit
92a0d23eac
@@ -88,6 +88,10 @@ static void torture_hostkey_rsa(void **state) {
|
|||||||
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
if (ssh_fips_mode()) {
|
||||||
|
skip();
|
||||||
|
}
|
||||||
|
|
||||||
rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &rsa);
|
rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &rsa);
|
||||||
assert_ssh_return_code(session, rc);
|
assert_ssh_return_code(session, rc);
|
||||||
|
|
||||||
@@ -107,6 +111,10 @@ static void torture_hostkey_ed25519(void **state) {
|
|||||||
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
if (ssh_fips_mode()) {
|
||||||
|
skip();
|
||||||
|
}
|
||||||
|
|
||||||
rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &ed);
|
rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &ed);
|
||||||
assert_ssh_return_code(session, rc);
|
assert_ssh_return_code(session, rc);
|
||||||
|
|
||||||
@@ -127,6 +135,10 @@ static void torture_hostkey_dss(void **state) {
|
|||||||
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
if (ssh_fips_mode()) {
|
||||||
|
skip();
|
||||||
|
}
|
||||||
|
|
||||||
rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &rsa);
|
rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, &rsa);
|
||||||
assert_ssh_return_code(session, rc);
|
assert_ssh_return_code(session, rc);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user