]> andersk Git - openssh.git/blobdiff - session.h
- markus@cvs.openbsd.org 2002/06/05 16:48:54
[openssh.git] / session.h
index bce99f77cb49d843c82860803a7664fa84b7440d..2a7e4b224fd475d2c839497eb90683eda2999a85 100644 (file)
--- a/session.h
+++ b/session.h
@@ -1,5 +1,7 @@
+/*     $OpenBSD: session.h,v 1.17 2002/03/29 18:59:32 markus Exp $     */
+
 /*
- * Copyright (c) 2000 Markus Friedl.  All rights reserved.
+ * Copyright (c) 2000, 2001 Markus Friedl.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 #ifndef SESSION_H
 #define SESSION_H
 
-/* SSH1 */
-void   do_authenticated(struct passwd * pw);
+#define TTYSZ 64
+typedef struct Session Session;
+struct Session {
+       int     used;
+       int     self;
+       struct passwd *pw;
+       Authctxt *authctxt;
+       pid_t   pid;
+       /* tty */
+       char    *term;
+       int     ptyfd, ttyfd, ptymaster;
+       int     row, col, xpixel, ypixel;
+       char    tty[TTYSZ];
+       /* last login */
+       char    hostname[MAXHOSTNAMELEN];
+       time_t  last_login_time;
+       /* X11 */
+       int     display_number;
+       char    *display;
+       int     screen;
+       char    *auth_display;
+       char    *auth_proto;
+       char    *auth_data;
+       int     single_connection;
+       /* proto 2 */
+       int     chanid;
+       int     is_subsystem;
+};
+
+void    do_authenticated(Authctxt *);
 
-/* SSH2 */
-void   do_authenticated2(void);
-int    session_open(int id);
-void   session_input_channel_req(int id, void *arg);
-void   session_close_by_pid(pid_t pid, int status);
-void   session_close_by_channel(int id, void *arg);
+int     session_open(Authctxt*, int);
+int     session_input_channel_req(Channel *, const char *);
+void    session_close_by_pid(pid_t, int);
+void    session_close_by_channel(int, void *);
+void    session_destroy_all(void (*)(Session *));
+void    session_pty_cleanup2(void *);
 
+Session        *session_new(void);
+Session        *session_by_tty(char *);
+void    session_close(Session *);
+void    do_setusercontext(struct passwd *);
 #endif
This page took 0.135758 seconds and 4 git commands to generate.