summaryrefslogtreecommitdiff
path: root/auth-options.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth-options.h')
-rw-r--r--auth-options.h19
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 */
20struct 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. */
19extern int no_port_forwarding_flag; 26extern int no_port_forwarding_flag;
20extern int no_agent_forwarding_flag; 27extern int no_agent_forwarding_flag;
@@ -23,8 +30,14 @@ extern int no_pty_flag;
23extern char *forced_command; 30extern char *forced_command;
24extern struct envstring *custom_environment; 31extern struct envstring *custom_environment;
25 32
26/* return 1 if access is granted, 0 if not. side effect: sets key option flags */ 33/*
27int 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 */
37int
38auth_parse_options(struct passwd *pw, char *options, char *file,
39 u_long linenum);
40
28/* reset options flags */ 41/* reset options flags */
29void auth_clear_options(void); 42void auth_clear_options(void);
30 43