aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-05-04 13:02:26 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-05 14:23:06 +0200
commit44de453b227115c0d60926302901ae0869ef5d1e (patch)
treec513f8de0872abb2ade17d0b64b1cc9c0baeddfb
parent7c20875891223e61b6be1509bd1458be5242678e (diff)
downloadlibssh-44de453b227115c0d60926302901ae0869ef5d1e.tar.gz
libssh-44de453b227115c0d60926302901ae0869ef5d1e.tar.xz
libssh-44de453b227115c0d60926302901ae0869ef5d1e.zip
tests: Enable all CASignatureAlgorithms as SHA1 certificates are now disabled in OpenSSH 8.2p1
This option is unknown to older OpenSSH versions (for example CentOS 7 with OpenSSH 7.4) so we can not add it everywhere. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--tests/torture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c
index 64eb6f8b..1c64f6de 100644
--- a/tests/torture.c
+++ b/tests/torture.c
@@ -747,6 +747,9 @@ static void torture_setup_create_sshd_config(void **state, bool pam)
"\n"
/* add all supported algorithms */
"HostKeyAlgorithms " OPENSSH_KEYS "\n"
+#if OPENSSH_VERSION_MAJOR == 8 && OPENSSH_VERSION_MINOR >= 2
+ "CASignatureAlgorithms " OPENSSH_KEYS "\n"
+#endif
"Ciphers " OPENSSH_CIPHERS "\n"
"KexAlgorithms " OPENSSH_KEX "\n"
"MACs " OPENSSH_MACS "\n"