diff 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
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/ClientKexManager.java	Mon Aug 04 12:11:12 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/ClientKexManager.java	Mon Aug 04 13:08:22 2014 -0700
@@ -160,10 +160,10 @@
             }
 
             if (kxs.np.kex_algo.equals("diffie-hellman-group1-sha1")  ||
-                    kxs.np.kex_algo.equals("diffie-hellman-group14-sha1") ||
-                    kxs.np.kex_algo.equals("ecdh-sha2-nistp256")          ||
-                    kxs.np.kex_algo.equals("ecdh-sha2-nistp384")          ||
-                    kxs.np.kex_algo.equals("ecdh-sha2-nistp521")) {
+                kxs.np.kex_algo.equals("diffie-hellman-group14-sha1") ||
+                kxs.np.kex_algo.equals("ecdh-sha2-nistp256")          ||
+                kxs.np.kex_algo.equals("ecdh-sha2-nistp384")          ||
+                kxs.np.kex_algo.equals("ecdh-sha2-nistp521")) {
                 kxs.dhx = GenericDhExchange.getInstance(kxs.np.kex_algo);
                 kxs.dhx.init(kxs.np.kex_algo);
                 kxs.hashAlgo = kxs.dhx.getHashAlgo();