Mercurial > 510Connectbot
diff src/ch/ethz/ssh2/transport/ClientTransportManager.java @ 307:071eccdff8ea ganymed
fix java formatting
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:16:58 -0700 |
parents | ca5dd224a87b |
children | 63b23b7c840d |
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/ClientTransportManager.java Wed Jul 30 12:09:51 2014 -0700 +++ b/src/ch/ethz/ssh2/transport/ClientTransportManager.java Wed Jul 30 14:16:58 2014 -0700 @@ -31,29 +31,23 @@ public void connect(String hostname, int port, String softwareversion, CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, SecureRandom rnd) - throws IOException { + throws IOException { // Establish the TCP connection to the SSH-2 server this.connect(hostname, port, connectTimeout); - // Parse the server line and say hello - important: this information is later needed for the // key exchange (to stop man-in-the-middle attacks) - that is why we wrap it into an object // for later use. - ClientServerHello csh = ClientServerHello.clientHello(softwareversion, sock.getInputStream(), - sock.getOutputStream()); - + sock.getOutputStream()); TransportConnection tc = new TransportConnection(sock.getInputStream(), sock.getOutputStream(), rnd); - KexManager km = new ClientKexManager(this, csh, cwl, hostname, port, verifier, rnd); super.init(tc, km); - km.initiateKEX(cwl, dhgex, null, null, null); - this.startReceiver(); } protected void connect(String hostname, int port, int connectTimeout) - throws IOException { + throws IOException { sock.connect(new InetSocketAddress(hostname, port), connectTimeout); } } \ No newline at end of file