changeset 366:098bb036e0a7

fix typo in key exchange hash algorithm type
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 10:27:18 -0700
parents 145ec135804f
children b82713cd787d
files src/ch/ethz/ssh2/transport/ClientKexManager.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/ClientKexManager.java	Mon Aug 04 09:41:22 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/ClientKexManager.java	Mon Aug 04 10:27:18 2014 -0700
@@ -88,7 +88,7 @@
 
     public synchronized void handleMessage(byte[] msg) throws IOException {
         PacketKexInit kip;
-        
+
         if (msg == null) {
             synchronized (accessLock) {
                 connectionClosed = true;
@@ -96,7 +96,7 @@
                 return;
             }
         }
-        
+
         log.debug(String.format("client kex manager, packet type %d", msg[0]));
 
         if ((kxs == null) && (msg[0] != Packets.SSH_MSG_KEXINIT)) {
@@ -152,7 +152,7 @@
                     kxs.hashAlgo = "SHA1";
                 }
                 else {
-                    kxs.hashAlgo = "SHA-256";
+                    kxs.hashAlgo = "SHA2";
                 }
 
                 kxs.state = 1;