diff common-kex.c @ 746:465fefc4f6e0 kexguess

Put some #ifdef options around first-follows options in case they need to be disabled
author Matt Johnston <matt@ucc.asn.au>
date Wed, 03 Apr 2013 00:43:31 +0800
parents eafdf8b363f5
children d63ef1e211ea
line wrap: on
line diff
--- a/common-kex.c	Wed Apr 03 00:32:55 2013 +0800
+++ b/common-kex.c	Wed Apr 03 00:43:31 2013 +0800
@@ -692,7 +692,11 @@
 
 	memset(ses.newkeys, 0x0, sizeof(*ses.newkeys));
 
+#ifdef USE_KEXGUESS2
 	enum kexguess2_used kexguess2 = KEXGUESS2_LOOK;
+#else
+	enum kexguess2_used kexguess2 = KEXGUESS2_NO;
+#endif
 
 	/* kex_algorithms */
 	algo = buf_match_algo(ses.payload, sshkex, &kexguess2, &goodguess);