2659.11.193
by djm
- djm@cvs.openbsd.org 2008/05/08 12:21:16 |
1 |
/* $OpenBSD: session.h,v 1.30 2008/05/08 12:21:16 djm Exp $ */
|
885
by mouring
- niklas@cvs.openbsd.org 2001/01/2001 |
2 |
|
640
by djm
- (djm) Merge OpenBSD changes: |
3 |
/*
|
1637
by mouring
- markus@cvs.openbsd.org 2001/06/25 08:25:41 |
4 |
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
|
640
by djm
- (djm) Merge OpenBSD changes: |
5 |
*
|
6 |
* Redistribution and use in source and binary forms, with or without
|
|
7 |
* modification, are permitted provided that the following conditions
|
|
8 |
* are met:
|
|
9 |
* 1. Redistributions of source code must retain the above copyright
|
|
10 |
* notice, this list of conditions and the following disclaimer.
|
|
11 |
* 2. Redistributions in binary form must reproduce the above copyright
|
|
12 |
* notice, this list of conditions and the following disclaimer in the
|
|
13 |
* documentation and/or other materials provided with the distribution.
|
|
14 |
*
|
|
15 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
16 |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
17 |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
18 |
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
19 |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
20 |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21 |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22 |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
24 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25 |
*/
|
|
390
by damien
- Big OpenBSD CVS update (mainly beginnings of SSH2 infrastructure) |
26 |
#ifndef SESSION_H
|
27 |
#define SESSION_H
|
|
28 |
||
3161
by Colin Watson
Add support for registering ConsoleKit sessions on login. |
29 |
struct _CkConnector; |
30 |
||
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
31 |
#define TTYSZ 64
|
32 |
typedef struct Session Session; |
|
33 |
struct Session { |
|
34 |
int used; |
|
35 |
int self; |
|
2659.11.193
by djm
- djm@cvs.openbsd.org 2008/05/08 12:21:16 |
36 |
int next_unused; |
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
37 |
struct passwd *pw; |
38 |
Authctxt *authctxt; |
|
39 |
pid_t pid; |
|
2659.9.122
by djm
- deraadt@cvs.openbsd.org 2006/03/20 18:26:55 |
40 |
|
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
41 |
/* tty */
|
42 |
char *term; |
|
43 |
int ptyfd, ttyfd, ptymaster; |
|
2617
by mouring
- deraadt@cvs.openbsd.org 2002/06/23 21:06:41 |
44 |
u_int row, col, xpixel, ypixel; |
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
45 |
char tty[TTYSZ]; |
2659.9.122
by djm
- deraadt@cvs.openbsd.org 2006/03/20 18:26:55 |
46 |
|
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
47 |
/* X11 */
|
2617
by mouring
- deraadt@cvs.openbsd.org 2002/06/23 21:06:41 |
48 |
u_int display_number; |
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
49 |
char *display; |
2617
by mouring
- deraadt@cvs.openbsd.org 2002/06/23 21:06:41 |
50 |
u_int screen; |
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
51 |
char *auth_display; |
52 |
char *auth_proto; |
|
53 |
char *auth_data; |
|
54 |
int single_connection; |
|
2659.9.122
by djm
- deraadt@cvs.openbsd.org 2006/03/20 18:26:55 |
55 |
|
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
56 |
/* proto 2 */
|
57 |
int chanid; |
|
2659.8.99
by djm
- (djm) [auth-pam.c sftp.c] spaces vs. tabs at start of line |
58 |
int *x11_chanids; |
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
59 |
int is_subsystem; |
2659.8.71
by djm
- djm@cvs.openbsd.org 2005/06/17 02:44:33 |
60 |
u_int num_env; |
2659.6.19
by dtucker
- djm@cvs.openbsd.org 2004/04/27 09:46:37 |
61 |
struct { |
62 |
char *name; |
|
63 |
char *val; |
|
2659.9.122
by djm
- deraadt@cvs.openbsd.org 2006/03/20 18:26:55 |
64 |
} *env; |
3161
by Colin Watson
Add support for registering ConsoleKit sessions on login. |
65 |
|
66 |
#ifdef USE_CONSOLEKIT
|
|
67 |
struct _CkConnector *ckc; |
|
68 |
#endif /* USE_CONSOLEKIT */ |
|
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
69 |
};
|
70 |
||
1652
by mouring
- markus@cvs.openbsd.org 2001/06/26 17:27:25 |
71 |
void do_authenticated(Authctxt *); |
2659.5.51
by dtucker
- markus@cvs.openbsd.org 2003/09/23 20:17:11 |
72 |
void do_cleanup(Authctxt *); |
390
by damien
- Big OpenBSD CVS update (mainly beginnings of SSH2 infrastructure) |
73 |
|
2659.1.24
by mouring
- deraadt@cvs.openbsd.org 2002/06/30 21:59:45 |
74 |
int session_open(Authctxt *, int); |
2659.11.193
by djm
- djm@cvs.openbsd.org 2008/05/08 12:21:16 |
75 |
void session_unused(int); |
2140
by djm
- markus@cvs.openbsd.org 2002/02/03 17:53:25 |
76 |
int session_input_channel_req(Channel *, const char *); |
1652
by mouring
- markus@cvs.openbsd.org 2001/06/26 17:27:25 |
77 |
void session_close_by_pid(pid_t, int); |
78 |
void session_close_by_channel(int, void *); |
|
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
79 |
void session_destroy_all(void (*)(Session *)); |
2659.5.51
by dtucker
- markus@cvs.openbsd.org 2003/09/23 20:17:11 |
80 |
void session_pty_cleanup2(Session *); |
403
by damien
|
81 |
|
2278
by mouring
- provos@cvs.openbsd.org 2002/03/18 17:50:31 |
82 |
Session *session_new(void); |
83 |
Session *session_by_tty(char *); |
|
84 |
void session_close(Session *); |
|
3160.1.292
by Colin Watson
Rearrange selinux-role.patch so that it links properly given this |
85 |
void do_setusercontext(struct passwd *, const char *); |
2659.4.287
by dtucker
- markus@cvs.openbsd.org 2003/08/22 10:56:09 |
86 |
void child_set_env(char ***envp, u_int *envsizep, const char *name, |
87 |
const char *value); |
|
88 |
||
390
by damien
- Big OpenBSD CVS update (mainly beginnings of SSH2 infrastructure) |
89 |
#endif
|