torture: Fix ssh version detection

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>

(cherry-picked from commit de309c51)
This commit is contained in:
Andreas Schneider
2016-02-08 18:38:24 +01:00
parent 88ae595583
commit 2983b21996

View File

@@ -819,7 +819,7 @@ static void torture_setup_create_sshd_config(void **state)
"\n"
"UsePAM yes\n"
"\n"
#if OPENSSH_VERSION_MAJOR == 6 && OPENSSH_VERSION_MINOR >= 7
#if (OPENSSH_VERSION_MAJOR == 6 && OPENSSH_VERSION_MINOR >= 7) || (OPENSSH_VERSION_MAJOR >= 7)
"HostKeyAlgorithms +ssh-dss\n"
"Ciphers +3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc\n"
"KexAlgorithms +diffie-hellman-group1-sha1"