changeset 320:5afb8c1a54b9 ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 08:36:33 -0700
parents 776a220dbcc6
children c19b24adf6c9
files src/ch/ethz/ssh2/Connection.java src/ch/ethz/ssh2/auth/AuthenticationManager.java src/ch/ethz/ssh2/transport/TransportManager.java
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/Connection.java	Thu Jul 31 08:20:47 2014 -0700
+++ b/src/ch/ethz/ssh2/Connection.java	Thu Jul 31 08:36:33 2014 -0700
@@ -860,7 +860,7 @@
         }
         catch (IOException e) {
             // This will also invoke any registered connection monitors
-            close(e);
+            close(e, false);
 
             synchronized (state) {
                 /* Show a clean exception, not something like "the socket is closed!?!" */
--- a/src/ch/ethz/ssh2/auth/AuthenticationManager.java	Thu Jul 31 08:20:47 2014 -0700
+++ b/src/ch/ethz/ssh2/auth/AuthenticationManager.java	Thu Jul 31 08:36:33 2014 -0700
@@ -309,7 +309,7 @@
             throw new PacketTypeException(type);
         }
         catch (IOException e) {
-            tm.close(e);
+            tm.close(e, false);
             throw e;
         }
     }
@@ -320,7 +320,7 @@
             return authenticated;
         }
         catch (IOException e) {
-            tm.close(e);
+            tm.close(e, false);
             throw e;
         }
     }
@@ -354,7 +354,7 @@
             throw new PacketTypeException(type);
         }
         catch (IOException e) {
-            tm.close(e);
+            tm.close(e, false);
             throw e;
         }
     }
@@ -409,7 +409,7 @@
             }
         }
         catch (IOException e) {
-            tm.close(e);
+            tm.close(e, false);
             throw e;
         }
     }
--- a/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 08:20:47 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 08:36:33 2014 -0700
@@ -127,8 +127,8 @@
 
     private boolean flagKexOngoing;
 
-    private boolean connectionClosed;
-    private IOException reasonClosedCause;
+    private boolean   connectionClosed;
+    private Throwable reasonClosedCause;
 
     private TransportConnection tc;
     private KexManager km;