comparison 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
comparison
equal deleted inserted replaced
745:15999b098cc9 746:465fefc4f6e0
690 690
691 buf_incrpos(ses.payload, 16); /* start after the cookie */ 691 buf_incrpos(ses.payload, 16); /* start after the cookie */
692 692
693 memset(ses.newkeys, 0x0, sizeof(*ses.newkeys)); 693 memset(ses.newkeys, 0x0, sizeof(*ses.newkeys));
694 694
695 #ifdef USE_KEXGUESS2
695 enum kexguess2_used kexguess2 = KEXGUESS2_LOOK; 696 enum kexguess2_used kexguess2 = KEXGUESS2_LOOK;
697 #else
698 enum kexguess2_used kexguess2 = KEXGUESS2_NO;
699 #endif
696 700
697 /* kex_algorithms */ 701 /* kex_algorithms */
698 algo = buf_match_algo(ses.payload, sshkex, &kexguess2, &goodguess); 702 algo = buf_match_algo(ses.payload, sshkex, &kexguess2, &goodguess);
699 allgood &= goodguess; 703 allgood &= goodguess;
700 if (algo == NULL || algo->val == KEXGUESS2_ALGO_ID) { 704 if (algo == NULL || algo->val == KEXGUESS2_ALGO_ID) {