diff options
Diffstat (limited to 'auth-options.h')
-rw-r--r-- | auth-options.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/auth-options.h b/auth-options.h index 76d420d23..8ee269491 100644 --- a/auth-options.h +++ b/auth-options.h | |||
@@ -11,10 +11,17 @@ | |||
11 | * called by a name other than "ssh" or "Secure Shell". | 11 | * called by a name other than "ssh" or "Secure Shell". |
12 | */ | 12 | */ |
13 | 13 | ||
14 | /* $OpenBSD: auth-options.h,v 1.6 2000/12/19 23:17:55 markus Exp $ */ | 14 | /* $OpenBSD: auth-options.h,v 1.8 2001/01/21 19:05:42 markus Exp $ */ |
15 | 15 | ||
16 | #ifndef AUTH_OPTIONS_H | 16 | #ifndef AUTH_OPTIONS_H |
17 | #define AUTH_OPTIONS_H | 17 | #define AUTH_OPTIONS_H |
18 | |||
19 | /* Linked list of custom environment strings */ | ||
20 | struct envstring { | ||
21 | struct envstring *next; | ||
22 | char *s; | ||
23 | }; | ||
24 | |||
18 | /* Flags that may be set in authorized_keys options. */ | 25 | /* Flags that may be set in authorized_keys options. */ |
19 | extern int no_port_forwarding_flag; | 26 | extern int no_port_forwarding_flag; |
20 | extern int no_agent_forwarding_flag; | 27 | extern int no_agent_forwarding_flag; |
@@ -23,8 +30,14 @@ extern int no_pty_flag; | |||
23 | extern char *forced_command; | 30 | extern char *forced_command; |
24 | extern struct envstring *custom_environment; | 31 | extern struct envstring *custom_environment; |
25 | 32 | ||
26 | /* return 1 if access is granted, 0 if not. side effect: sets key option flags */ | 33 | /* |
27 | int auth_parse_options(struct passwd *pw, char *options, u_long linenum); | 34 | * return 1 if access is granted, 0 if not. |
35 | * side effect: sets key option flags | ||
36 | */ | ||
37 | int | ||
38 | auth_parse_options(struct passwd *pw, char *options, char *file, | ||
39 | u_long linenum); | ||
40 | |||
28 | /* reset options flags */ | 41 | /* reset options flags */ |
29 | void auth_clear_options(void); | 42 | void auth_clear_options(void); |
30 | 43 | ||