From 7b44e23e6f9f3ed5a15f4e87165dce8a882d3c0a Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 18 Apr 2023 08:29:28 +0200 Subject: [PATCH] tests: Skip ciphers not supported by OpenSSH This is a problem in recent Fedora, as the 0.9 branch still supports blowfish, while OpenSSH dropped this support in 7.6. Signed-off-by: Jakub Jelen Reviewed-by: Norbert Pocs Reviewed-by: Andrew Bartlett --- tests/server/torture_server_config.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/server/torture_server_config.c b/tests/server/torture_server_config.c index d751dd74..a0737c36 100644 --- a/tests/server/torture_server_config.c +++ b/tests/server/torture_server_config.c @@ -513,6 +513,12 @@ static void torture_server_config_ciphers(void **state) /* Try each algorithm individually */ j = 0; while(tokens->tokens[j] != NULL) { + char *cmp = strstr(OPENSSH_CIPHERS, tokens->tokens[j]); + if (cmp == NULL) { + /* This cipher is not supported by the OpenSSH. Skip it */ + j++; + continue; + } snprintf(config_content, sizeof(config_content), "HostKey %s\nCiphers %s\n",