summaryrefslogtreecommitdiffstats
path: root/libssh/kex.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-14 20:43:06 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-14 21:11:29 +0200
commit250273cf1aa5d8391aeb68ac11b55a067cab1969 (patch)
tree5ad47192757c2e4e45ef0aa3e58995bddea40496 /libssh/kex.c
parentbc15f7b7aa60f993e5fb138e1193a5dd72eddea9 (diff)
downloadlibssh-250273cf1aa5d8391aeb68ac11b55a067cab1969.tar.gz
libssh-250273cf1aa5d8391aeb68ac11b55a067cab1969.tar.xz
libssh-250273cf1aa5d8391aeb68ac11b55a067cab1969.zip
Do not compile aes*-ctr with <=OpenSSL 0.9.7b
Diffstat (limited to 'libssh/kex.c')
-rw-r--r--libssh/kex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh/kex.c b/libssh/kex.c
index 2b833840..a5997348 100644
--- a/libssh/kex.c
+++ b/libssh/kex.c
@@ -53,10 +53,15 @@
#define BLOWFISH ""
#endif
#ifdef HAVE_OPENSSL_AES_H
+#ifdef BROKEN_AES_CTR
+#define AES "aes256-cbc,aes192-cbc,aes128-cbc,"
+#else
#define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
+#endif /* BROKEN_AES_CTR */
#else
#define AES ""
#endif
+
#define DES "3des-cbc"
#endif