comparison src/ch/ethz/ssh2/transport/ClientKexManager.java @ 373:2768eb029d73

debug kex error
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 13:08:22 -0700
parents 098bb036e0a7
children
comparison
equal deleted inserted replaced
372:20d0a1356c43 373:2768eb029d73
158 kxs.state = 1; 158 kxs.state = 1;
159 return; 159 return;
160 } 160 }
161 161
162 if (kxs.np.kex_algo.equals("diffie-hellman-group1-sha1") || 162 if (kxs.np.kex_algo.equals("diffie-hellman-group1-sha1") ||
163 kxs.np.kex_algo.equals("diffie-hellman-group14-sha1") || 163 kxs.np.kex_algo.equals("diffie-hellman-group14-sha1") ||
164 kxs.np.kex_algo.equals("ecdh-sha2-nistp256") || 164 kxs.np.kex_algo.equals("ecdh-sha2-nistp256") ||
165 kxs.np.kex_algo.equals("ecdh-sha2-nistp384") || 165 kxs.np.kex_algo.equals("ecdh-sha2-nistp384") ||
166 kxs.np.kex_algo.equals("ecdh-sha2-nistp521")) { 166 kxs.np.kex_algo.equals("ecdh-sha2-nistp521")) {
167 kxs.dhx = GenericDhExchange.getInstance(kxs.np.kex_algo); 167 kxs.dhx = GenericDhExchange.getInstance(kxs.np.kex_algo);
168 kxs.dhx.init(kxs.np.kex_algo); 168 kxs.dhx.init(kxs.np.kex_algo);
169 kxs.hashAlgo = kxs.dhx.getHashAlgo(); 169 kxs.hashAlgo = kxs.dhx.getHashAlgo();
170 PacketKexDHInit kp = new PacketKexDHInit(kxs.dhx.getE()); 170 PacketKexDHInit kp = new PacketKexDHInit(kxs.dhx.getE());
171 tm.sendKexMessage(kp.getPayload()); 171 tm.sendKexMessage(kp.getPayload());