comparison src/ch/ethz/ssh2/server/ServerConnectionState.java @ 342:175c7d68f3c4

merge ganymed into mainline
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 16:33:38 -0700
parents 071eccdff8ea
children b40bc65fa09a
comparison
equal deleted inserted replaced
272:ce2f4e397703 342:175c7d68f3c4
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 java.security.KeyPair;
17 import java.security.PrivateKey;
18 import java.security.interfaces.DSAPrivateKey;
19 import java.security.interfaces.ECPrivateKey;
20 import java.security.interfaces.RSAPrivateKey;
21 import ch.ethz.ssh2.transport.ClientServerHello;
22 import ch.ethz.ssh2.transport.ServerTransportManager;
23
24 public class ServerConnectionState {
25 public ServerConnection conn;
26
27 public SecureRandom generator = new SecureRandom();
28
29 public String softwareversion;
30
31 //public String auth_banner = null;
32 public ServerConnectionCallback cb_conn;
33 public ServerAuthenticationCallback cb_auth;
34
35 /* Settings for the next key exchange */
36 public CryptoWishList next_cryptoWishList = CryptoWishList.forServer();
37 public KeyPair next_dsa_key;
38 public KeyPair next_ec_key;
39 public KeyPair next_rsa_key;
40
41 public Socket s;
42
43 public ClientServerHello csh;
44 public ServerTransportManager tm;
45 public ServerAuthenticationManager am;
46 public ChannelManager cm;
47
48 public boolean flag_auth_serviceRequested = false;
49 public boolean flag_auth_completed = false;
50
51 public ServerConnectionState(ServerConnection conn) {
52 this.conn = conn;
53 }
54 }