xref: /titanic_41/usr/src/cmd/ssh/include/auth-options.h (revision c138f478d2bc94e73ab8f6a084e323bec25e62f5)
1 /*	$OpenBSD: auth-options.h,v 1.12 2002/07/21 18:34:43 stevesk Exp $	*/
2 
3 #ifndef	_AUTH_OPTIONS_H
4 #define	_AUTH_OPTIONS_H
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 
13 /*
14  * Author: Tatu Ylonen <ylo@cs.hut.fi>
15  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
16  *                    All rights reserved
17  *
18  * As far as I am concerned, the code I have written for this software
19  * can be used freely for any purpose.  Any derived versions of this
20  * software must be clearly marked as such, and if the derived work is
21  * incompatible with the protocol description in the RFC file, it must be
22  * called by a name other than "ssh" or "Secure Shell".
23  */
24 
25 /* Linked list of custom environment strings */
26 struct envstring {
27 	struct envstring *next;
28 	char   *s;
29 };
30 
31 /* Flags that may be set in authorized_keys options. */
32 extern int no_port_forwarding_flag;
33 extern int no_agent_forwarding_flag;
34 extern int no_x11_forwarding_flag;
35 extern int no_pty_flag;
36 extern char *forced_command;
37 extern struct envstring *custom_environment;
38 
39 int	auth_parse_options(struct passwd *, char *, char *, u_long);
40 void	auth_clear_options(void);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /* _AUTH_OPTIONS_H */
47