Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/server/ServerConnectionState.java @ 273:91a31873c42a ganymed
start conversion from trilead to ganymed
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 18 Jul 2014 11:21:46 -0700 |
parents | |
children | d7e088fa2123 |
comparison
equal
deleted
inserted
replaced
272:ce2f4e397703 | 273:91a31873c42a |
---|---|
1 /* | |
2 * Copyright (c) 2006-2013 Christian Plattner. All rights reserved. | |
3 * Please refer to the LICENSE.txt for licensing details. | |
4 */ | |
5 package ch.ethz.ssh2.server; | |
6 | |
7 import java.net.Socket; | |
8 import java.security.SecureRandom; | |
9 | |
10 import ch.ethz.ssh2.ServerAuthenticationCallback; | |
11 import ch.ethz.ssh2.ServerConnection; | |
12 import ch.ethz.ssh2.ServerConnectionCallback; | |
13 import ch.ethz.ssh2.auth.ServerAuthenticationManager; | |
14 import ch.ethz.ssh2.channel.ChannelManager; | |
15 import ch.ethz.ssh2.crypto.CryptoWishList; | |
16 import ch.ethz.ssh2.signature.DSAPrivateKey; | |
17 import ch.ethz.ssh2.signature.RSAPrivateKey; | |
18 import ch.ethz.ssh2.transport.ClientServerHello; | |
19 import ch.ethz.ssh2.transport.ServerTransportManager; | |
20 | |
21 public class ServerConnectionState | |
22 { | |
23 public ServerConnection conn; | |
24 | |
25 public SecureRandom generator = new SecureRandom(); | |
26 | |
27 public String softwareversion; | |
28 | |
29 //public String auth_banner = null; | |
30 public ServerConnectionCallback cb_conn; | |
31 public ServerAuthenticationCallback cb_auth; | |
32 | |
33 /* Settings for the next key exchange */ | |
34 public CryptoWishList next_cryptoWishList = CryptoWishList.forServer(); | |
35 public DSAPrivateKey next_dsa_key; | |
36 public RSAPrivateKey next_rsa_key; | |
37 | |
38 public Socket s; | |
39 | |
40 public ClientServerHello csh; | |
41 public ServerTransportManager tm; | |
42 public ServerAuthenticationManager am; | |
43 public ChannelManager cm; | |
44 | |
45 public boolean flag_auth_serviceRequested = false; | |
46 public boolean flag_auth_completed = false; | |
47 | |
48 public ServerConnectionState(ServerConnection conn) | |
49 { | |
50 this.conn = conn; | |
51 } | |
52 } |