]> andersk Git - openssh.git/blobdiff - session.h
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / session.h
index c3a12821f8f791ce088180cadd3252427ce2b282..cbb8e3a32d183abbfa35506c5943bfe3fd11f67c 100644 (file)
--- a/session.h
+++ b/session.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.h,v 1.28 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: session.h,v 1.30 2008/05/08 12:21:16 djm Exp $ */
 
 /*
  * Copyright (c) 2000, 2001 Markus Friedl.  All rights reserved.
 #ifndef SESSION_H
 #define SESSION_H
 
-#include <sys/types.h>
-
-#include <pwd.h>
-
 #define TTYSZ 64
 typedef struct Session Session;
 struct Session {
        int     used;
        int     self;
+       int     next_unused;
        struct passwd *pw;
        Authctxt *authctxt;
        pid_t   pid;
@@ -69,6 +66,7 @@ void   do_authenticated(Authctxt *);
 void    do_cleanup(Authctxt *);
 
 int     session_open(Authctxt *, int);
+void    session_unused(int);
 int     session_input_channel_req(Channel *, const char *);
 void    session_close_by_pid(pid_t, int);
 void    session_close_by_channel(int, void *);
This page took 0.249379 seconds and 4 git commands to generate.