active_state declaration already in packet.h

This commit is contained in:
Markus Friedl
2012-01-06 14:07:56 +01:00
parent 6043e0c641
commit c44b8a2397
7 changed files with 0 additions and 13 deletions

View File

@@ -183,8 +183,6 @@ TAILQ_HEAD(global_confirms, global_confirm);
static struct global_confirms global_confirms =
TAILQ_HEAD_INITIALIZER(global_confirms);
extern struct ssh *active_state;
void ssh_process_session2_setup(int, int, int, Buffer *);
/* Restores stdin to blocking mode. */

View File

@@ -54,25 +54,21 @@ dispatch_protocol_ignore(int type, u_int32_t seq, void *ctxt)
void
dispatch_init(dispatch_fn *dflt)
{
extern struct ssh *active_state;
ssh_dispatch_init(active_state, dflt);
}
void
dispatch_range(u_int from, u_int to, dispatch_fn *fn)
{
extern struct ssh *active_state;
ssh_dispatch_range(active_state, from, to, fn);
}
void
dispatch_set(int type, dispatch_fn *fn)
{
extern struct ssh *active_state;
ssh_dispatch_set(active_state, type, fn);
}
void
dispatch_run(int mode, volatile sig_atomic_t *done, void *ctxt)
{
extern struct ssh *active_state;
ssh_dispatch_run(active_state, mode, done, ctxt);
}

View File

@@ -82,7 +82,6 @@ static Gssctxt *gsscontext = NULL;
/* Imports */
extern ServerOptions options;
extern struct ssh *active_state;
extern u_int utmp_len;
extern z_stream incoming_stream;
extern z_stream outgoing_stream;

View File

@@ -78,7 +78,6 @@
extern ServerOptions options;
extern struct ssh *active_state;
extern Authctxt *the_authctxt;
extern int use_privsep;

View File

@@ -65,7 +65,6 @@ int maxfd;
#define MAXCON (maxfd - 10)
extern char *__progname;
extern struct ssh *active_state;
fd_set *read_wait;
size_t read_wait_nfdset;
int ncon;

View File

@@ -86,8 +86,6 @@ u_int session_id2_len = 0;
char *xxx_host;
struct sockaddr *xxx_hostaddr;
extern struct ssh *active_state;
static int
verify_host_key_callback(Key *hostkey, void *ctxt)
{

View File

@@ -174,8 +174,6 @@ int num_listen_socks = 0;
char *client_version_string = NULL;
char *server_version_string = NULL;
extern struct ssh *active_state;
/*
* Any really sensitive data in the application is contained in this
* structure. The idea is that this structure could be locked into memory so