changeset 321:c19b24adf6c9 ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 08:49:37 -0700
parents 5afb8c1a54b9
children a713e91c59c8
files src/ch/ethz/ssh2/ServerConnection.java src/ch/ethz/ssh2/transport/TransportManager.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/ServerConnection.java	Thu Jul 31 08:36:33 2014 -0700
+++ b/src/ch/ethz/ssh2/ServerConnection.java	Thu Jul 31 08:49:37 2014 -0700
@@ -362,7 +362,7 @@
                 state.cm.closeAllChannels();
 
             if (state.tm != null) {
-                state.tm.close();
+                state.tm.close(new Throwable("Closed due to user request."), false);
             }
         }
     }
@@ -373,7 +373,7 @@
                 state.cm.closeAllChannels();
 
             if (state.tm != null) {
-                state.tm.close(t);
+                state.tm.close(t, false);
             }
         }
     }
--- a/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 08:36:33 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 08:49:37 2014 -0700
@@ -219,7 +219,7 @@
                     // Can only exit with exception
                 }
                 catch (IOException e) {
-                    close(e);
+                    close(e, false);
                     log.warning(e.getMessage());
 
                     // Tell all handlers that it is time to say goodbye
@@ -278,7 +278,7 @@
                 tc.sendMessage(msg);
             }
             catch (IOException e) {
-                close(e);
+                close(e, false);
                 throw e;
             }
         }
@@ -411,7 +411,7 @@
                 tc.sendMessage(msg);
             }
             catch (IOException e) {
-                close(e);
+                close(e, false);
                 throw e;
             }
         }