# HG changeset patch # User Carl Byington # Date 1406824302 25200 # Node ID a1a2e33b3565e04ba869a1b79799877fddf8f298 # Parent 90537ba718973b678c73a550e9c0c6388a6327c3 add ecdsa key support everywhere diff -r 90537ba71897 -r a1a2e33b3565 src/ch/ethz/ssh2/auth/AuthenticationManager.java --- a/src/ch/ethz/ssh2/auth/AuthenticationManager.java Thu Jul 31 09:26:19 2014 -0700 +++ b/src/ch/ethz/ssh2/auth/AuthenticationManager.java Thu Jul 31 09:31:42 2014 -0700 @@ -69,7 +69,7 @@ private byte[] deQueue() throws IOException { if (connectionClosed) { - throw new IOException("The connection is closed.").initCause(tm.getReasonClosedCause()); + throw(IOException) new IOException("The connection is closed.").initCause(tm.getReasonClosedCause()); } // Wait for packet diff -r 90537ba71897 -r a1a2e33b3565 src/ch/ethz/ssh2/transport/KexManager.java --- a/src/ch/ethz/ssh2/transport/KexManager.java Thu Jul 31 09:26:19 2014 -0700 +++ b/src/ch/ethz/ssh2/transport/KexManager.java Thu Jul 31 09:31:42 2014 -0700 @@ -98,7 +98,7 @@ } if (connectionClosed) { - throw new IOException("Key exchange was not finished, connection is closed.").initCause(tm.getReasonClosedCause()); + throw(IOException) new IOException("Key exchange was not finished, connection is closed.").initCause(tm.getReasonClosedCause()); } try { diff -r 90537ba71897 -r a1a2e33b3565 src/ch/ethz/ssh2/transport/TransportManager.java --- 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) {