mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
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:
@@ -513,6 +513,12 @@ static void torture_server_config_ciphers(void **state)
|
|||||||
/* Try each algorithm individually */
|
/* Try each algorithm individually */
|
||||||
j = 0;
|
j = 0;
|
||||||
while(tokens->tokens[j] != NULL) {
|
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,
|
snprintf(config_content,
|
||||||
sizeof(config_content),
|
sizeof(config_content),
|
||||||
"HostKey %s\nCiphers %s\n",
|
"HostKey %s\nCiphers %s\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user