1234287Sdim/* $OpenBSD: auth-options.h,v 1.20 2010/05/07 11:30:29 djm Exp $ */
2234287Sdim
3234287Sdim/*
4234287Sdim * Author: Tatu Ylonen <ylo@cs.hut.fi>
5234287Sdim * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6234287Sdim *                    All rights reserved
7234287Sdim *
8234287Sdim * As far as I am concerned, the code I have written for this software
9234287Sdim * can be used freely for any purpose.  Any derived versions of this
10234287Sdim * software must be clearly marked as such, and if the derived work is
11234287Sdim * incompatible with the protocol description in the RFC file, it must be
12234287Sdim * called by a name other than "ssh" or "Secure Shell".
13234287Sdim */
14234287Sdim
15234287Sdim#ifndef AUTH_OPTIONS_H
16234287Sdim#define AUTH_OPTIONS_H
17234287Sdim
18239462Sdim/* Linked list of custom environment strings */
19234287Sdimstruct envstring {
20234287Sdim	struct envstring *next;
21234287Sdim	char   *s;
22234287Sdim};
23234287Sdim
24234287Sdim/* Flags that may be set in authorized_keys options. */
25234287Sdimextern int no_port_forwarding_flag;
26234287Sdimextern int no_agent_forwarding_flag;
27234287Sdimextern int no_x11_forwarding_flag;
28234287Sdimextern int no_pty_flag;
29234287Sdimextern int no_user_rc;
30234287Sdimextern char *forced_command;
31234287Sdimextern struct envstring *custom_environment;
32234287Sdimextern int forced_tun_device;
33263508Sdimextern int key_is_cert_authority;
34234287Sdimextern char *authorized_principals;
35234287Sdim
36234287Sdimint	auth_parse_options(struct passwd *, char *, char *, u_long);
37239462Sdimvoid	auth_clear_options(void);
38239462Sdimint	auth_cert_options(Key *, struct passwd *);
39239462Sdim
40249423Sdim#endif
41249423Sdim