Mercurial > 510Connectbot
diff src/ch/ethz/ssh2/transport/ServerTransportManager.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 | beaccc9df37b |
children |
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/ServerTransportManager.java Wed Jul 30 12:09:51 2014 -0700 +++ b/src/ch/ethz/ssh2/transport/ServerTransportManager.java Wed Jul 30 14:16:58 2014 -0700 @@ -8,35 +8,27 @@ /** * @version $Id: ServerTransportManager.java 151 2014-04-28 10:03:39Z dkocher@sudo.ch $ */ -public class ServerTransportManager extends TransportManager -{ +public class ServerTransportManager extends TransportManager { - private final Socket sock; + private final Socket sock; - public ServerTransportManager(final Socket socket) - { - super(socket); - // TCP connection is already established - this.sock = socket; - } + public ServerTransportManager(final Socket socket) { + super(socket); + // TCP connection is already established + this.sock = socket; + } - public void connect(ServerConnectionState state) throws IOException - { - /* Parse the client lin - e 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. - */ - - state.csh = ClientServerHello.serverHello(state.softwareversion, sock.getInputStream(), sock.getOutputStream()); - - TransportConnection tc = new TransportConnection(sock.getInputStream(), sock.getOutputStream(), state.generator); - KexManager km = new ServerKexManager(state); - - super.init(tc, km); - - km.initiateKEX(state.next_cryptoWishList, null, state.next_dsa_key, state.next_rsa_key, state.next_ec_key); - - this.startReceiver(); - } + public void connect(ServerConnectionState state) throws IOException { + /* Parse the client lin + e 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. + */ + state.csh = ClientServerHello.serverHello(state.softwareversion, sock.getInputStream(), sock.getOutputStream()); + TransportConnection tc = new TransportConnection(sock.getInputStream(), sock.getOutputStream(), state.generator); + KexManager km = new ServerKexManager(state); + super.init(tc, km); + km.initiateKEX(state.next_cryptoWishList, null, state.next_dsa_key, state.next_rsa_key, state.next_ec_key); + this.startReceiver(); + } }