diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-07-20 12:05:00 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-07-20 12:05:00 +0000 |
commit | 7d2478bd1a0335806fcc473555083ae7f8713c37 (patch) | |
tree | d93c18c66b00d60d4dd5d8c1c895c987331c083c /common-session.c | |
parent | dc235f272787eab15238bd7c3bc9e451a6bfe155 (diff) | |
download | dropbear-7d2478bd1a0335806fcc473555083ae7f8713c37.tar.gz |
switching to global vars
Diffstat (limited to 'common-session.c')
-rw-r--r-- | common-session.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/common-session.c b/common-session.c index b7793f9..6e37e29 100644 --- a/common-session.c +++ b/common-session.c @@ -35,14 +35,14 @@ #include "channel.h" #include "atomicio.h" -struct sshsession ses; +struct sshsession ses; /* GLOBAL */ /* need to know if the session struct has been initialised, this way isn't the * cleanest, but works OK */ -int sessinitdone = 0; +int sessinitdone = 0; /* GLOBAL */ /* this is set when we get SIGINT or SIGTERM, the handler is in main.c */ -int exitflag = 0; +int exitflag = 0; /* GLOBAL */ static int ident_readln(int fd, char* buf, int count); @@ -51,7 +51,7 @@ void(*session_remoteclosed)() = NULL; /* called only at the start of a session, set up initial state */ -void common_session_init(int sock, runopts *opts) { +void common_session_init(int sock) { TRACE(("enter session_init")); @@ -61,8 +61,6 @@ void common_session_init(int sock, runopts *opts) { ses.sock = sock; ses.maxfd = sock; - ses.opts = opts; - ses.connecttimeout = 0; kexinitialise(); /* initialise the kex state */ @@ -128,7 +126,6 @@ void common_session_cleanup() { } m_free(ses.session_id); - freerunopts(ses.opts); m_burn(ses.keys, sizeof(struct key_context)); m_free(ses.keys); |