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 <jjelen@redhat.com>
Reviewed-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jakub Jelen
2023-04-18 08:29:28 +02:00
parent c26414972a
commit 7b44e23e6f

View File

@@ -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",