diff options
author | Damien Miller <djm@mindrot.org> | 2002-03-13 12:47:54 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-03-13 12:47:54 +1100 |
commit | 646e7cf3d7e7d4231c2d97d27c09fe5fe1d749e2 (patch) | |
tree | a693368c47d2d044514878fbb1516f87b487f78b /session.h | |
parent | 29bdd2c9bca2737e7a246ed50fd827a6ccba0c61 (diff) |
Import of Niels Provos' 20020312 ssh-complete.diff
PAM, Cygwin and OSF SIA will not work for sure
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -26,6 +26,32 @@ | |||
26 | #ifndef SESSION_H | 26 | #ifndef SESSION_H |
27 | #define SESSION_H | 27 | #define SESSION_H |
28 | 28 | ||
29 | #define TTYSZ 64 | ||
30 | typedef struct Session Session; | ||
31 | struct Session { | ||
32 | int used; | ||
33 | int self; | ||
34 | struct passwd *pw; | ||
35 | Authctxt *authctxt; | ||
36 | pid_t pid; | ||
37 | /* tty */ | ||
38 | char *term; | ||
39 | int ptyfd, ttyfd, ptymaster; | ||
40 | int row, col, xpixel, ypixel; | ||
41 | char tty[TTYSZ]; | ||
42 | /* X11 */ | ||
43 | int display_number; | ||
44 | char *display; | ||
45 | int screen; | ||
46 | char *auth_display; | ||
47 | char *auth_proto; | ||
48 | char *auth_data; | ||
49 | int single_connection; | ||
50 | /* proto 2 */ | ||
51 | int chanid; | ||
52 | int is_subsystem; | ||
53 | }; | ||
54 | |||
29 | void do_authenticated(Authctxt *); | 55 | void do_authenticated(Authctxt *); |
30 | 56 | ||
31 | int session_open(Authctxt*, int); | 57 | int session_open(Authctxt*, int); |
@@ -34,4 +60,6 @@ void session_close_by_pid(pid_t, int); | |||
34 | void session_close_by_channel(int, void *); | 60 | void session_close_by_channel(int, void *); |
35 | void session_destroy_all(void); | 61 | void session_destroy_all(void); |
36 | 62 | ||
63 | Session *session_new(void); | ||
64 | void session_close(Session *); | ||
37 | #endif | 65 | #endif |