aboutsummaryrefslogtreecommitdiff
path: root/src/kex.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-06-24 16:21:58 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-06-24 16:23:13 +0200
commit1d69e073af6a460eb00cc68869cde9caf7031856 (patch)
tree5e2fb2101756818baeff260393339e3a7bf89077 /src/kex.c
parentc480a29052ea49ecd4a4e59d3332cbd6546ed942 (diff)
downloadlibssh-1d69e073af6a460eb00cc68869cde9caf7031856.tar.gz
libssh-1d69e073af6a460eb00cc68869cde9caf7031856.tar.xz
libssh-1d69e073af6a460eb00cc68869cde9caf7031856.zip
kex: Add comments to #if clauses
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/kex.c')
-rw-r--r--src/kex.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/kex.c b/src/kex.c
index f05008b0..2e963bbb 100644
--- a/src/kex.c
+++ b/src/kex.c
@@ -42,24 +42,28 @@
# define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
# define DES "3des-cbc"
# define DES_SUPPORTED "3des-cbc,des-cbc-ssh1"
+
#elif defined(HAVE_LIBCRYPTO)
+
# ifdef HAVE_OPENSSL_BLOWFISH_H
# define BLOWFISH "blowfish-cbc,"
-# else
+# else /* HAVE_OPENSSL_BLOWFISH_H */
# define BLOWFISH ""
-# endif
+# endif /* HAVE_OPENSSL_BLOWFISH_H */
+
# ifdef HAVE_OPENSSL_AES_H
# ifdef BROKEN_AES_CTR
# define AES "aes256-cbc,aes192-cbc,aes128-cbc,"
-# else
+# else /* BROKEN_AES_CTR */
# define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
# endif /* BROKEN_AES_CTR */
-# else
+# else /* HAVE_OPENSSL_AES_H */
# define AES ""
-# endif
+# endif /* HAVE_OPENSSL_AES_H */
+
# define DES "3des-cbc"
# define DES_SUPPORTED "3des-cbc,des-cbc-ssh1"
-#endif
+#endif /* HAVE_LIBCRYPTO */
#ifdef WITH_ZLIB
#define ZLIB "none,zlib,zlib@openssh.com"