Mercurial > dropbear
comparison common-session.c @ 108:10f4d3319780
- added circular buffering for channels
- added stderr support for the client
- cleaned up a bunch of "unused" warnings, duplicated header definitions
- added exit-status support for the client
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 26 Aug 2004 13:16:40 +0000 |
parents | d3eb1fa8484e |
children | d663445c1533 |
comparison
equal
deleted
inserted
replaced
107:d3eb1fa8484e | 108:10f4d3319780 |
---|---|
33 #include "random.h" | 33 #include "random.h" |
34 #include "kex.h" | 34 #include "kex.h" |
35 #include "channel.h" | 35 #include "channel.h" |
36 #include "atomicio.h" | 36 #include "atomicio.h" |
37 | 37 |
38 static void checktimeouts(); | |
39 static int ident_readln(int fd, char* buf, int count); | |
38 | 40 |
39 struct sshsession ses; /* GLOBAL */ | 41 struct sshsession ses; /* GLOBAL */ |
40 | 42 |
41 /* need to know if the session struct has been initialised, this way isn't the | 43 /* need to know if the session struct has been initialised, this way isn't the |
42 * cleanest, but works OK */ | 44 * cleanest, but works OK */ |
44 | 46 |
45 /* this is set when we get SIGINT or SIGTERM, the handler is in main.c */ | 47 /* this is set when we get SIGINT or SIGTERM, the handler is in main.c */ |
46 int exitflag = 0; /* GLOBAL */ | 48 int exitflag = 0; /* GLOBAL */ |
47 | 49 |
48 | 50 |
49 static void checktimeouts(); | |
50 static int ident_readln(int fd, char* buf, int count); | |
51 | 51 |
52 /* called only at the start of a session, set up initial state */ | 52 /* called only at the start of a session, set up initial state */ |
53 void common_session_init(int sock, char* remotehost) { | 53 void common_session_init(int sock, char* remotehost) { |
54 | 54 |
55 TRACE(("enter session_init")); | 55 TRACE(("enter session_init")); |