diff src/ch/ethz/ssh2/transport/TransportManager.java @ 324:a1a2e33b3565 ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 09:31:42 -0700
parents 90537ba71897
children fe127b3c4b88
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 09:26:19 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 09:31:42 2014 -0700
@@ -280,7 +280,7 @@
     public void sendKexMessage(byte[] msg) throws IOException {
         synchronized (connectionSemaphore) {
             if (connectionClosed) {
-                throw new IOException("Sorry, this connection is closed.").initCause(reasonClosedCause);
+                throw(IOException) new IOException("Sorry, this connection is closed.").initCause(reasonClosedCause);
             }
 
             flagKexOngoing = true;
@@ -402,7 +402,7 @@
         synchronized (connectionSemaphore) {
             while (true) {
                 if (connectionClosed) {
-                    throw new IOException("Sorry, this connection is closed.").initCause(reasonClosedCause);
+                    throw(IOException) new IOException("Sorry, this connection is closed.").initCause(reasonClosedCause);
                 }
 
                 if (!flagKexOngoing) {