aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-04-14 12:26:50 +0200
committerJakub Jelen <jjelen@redhat.com>2020-04-20 14:14:33 +0200
commitfecdc3cc0e6d051ebbe06414a15c6634a4126a8b (patch)
tree9fd3ac5002c3a324d40946f976a10fc1426d887d /tests
parent04ae110c612f0dabc03882a52bf5be56be560020 (diff)
downloadlibssh-fecdc3cc0e6d051ebbe06414a15c6634a4126a8b.tar.gz
libssh-fecdc3cc0e6d051ebbe06414a15c6634a4126a8b.tar.xz
libssh-fecdc3cc0e6d051ebbe06414a15c6634a4126a8b.zip
Disable RSA and DSA keys with sha1 by default
Fixes: T218 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/torture_knownhosts_parsing.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/unittests/torture_knownhosts_parsing.c b/tests/unittests/torture_knownhosts_parsing.c
index 1c2ccc10..bde0eb60 100644
--- a/tests/unittests/torture_knownhosts_parsing.c
+++ b/tests/unittests/torture_knownhosts_parsing.c
@@ -574,13 +574,9 @@ static void torture_knownhosts_algorithms(void **state)
char *algo_list = NULL;
ssh_session session;
bool process_config = false;
- const char *expect = "ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,"
+ const char *expect = "ssh-ed25519,rsa-sha2-512,rsa-sha2-256,"
"ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,"
- "ecdsa-sha2-nistp256"
-#ifdef HAVE_DSA
- ",ssh-dss"
-#endif
- ;
+ "ecdsa-sha2-nistp256";
const char *expect_fips = "rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp521,"
"ecdsa-sha2-nistp384,ecdsa-sha2-nistp256";
@@ -613,13 +609,9 @@ static void torture_knownhosts_algorithms_global(void **state)
char *algo_list = NULL;
ssh_session session;
bool process_config = false;
- const char *expect = "ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,"
+ const char *expect = "ssh-ed25519,rsa-sha2-512,rsa-sha2-256,"
"ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,"
- "ecdsa-sha2-nistp256"
-#ifdef HAVE_DSA
- ",ssh-dss"
-#endif
- ;
+ "ecdsa-sha2-nistp256";
const char *expect_fips = "rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp521,"
"ecdsa-sha2-nistp384,ecdsa-sha2-nistp256";