Home | History | Annotate | Line # | Download | only in dist
auth-options.h revision 1.1
      1  1.1  christos /*	$NetBSD: auth-options.h,v 1.1 2009/06/07 22:19:01 christos Exp $	*/
      2  1.1  christos /* $OpenBSD: auth-options.h,v 1.17 2008/03/26 21:28:14 djm Exp $ */
      3  1.1  christos 
      4  1.1  christos /*
      5  1.1  christos  * Author: Tatu Ylonen <ylo (at) cs.hut.fi>
      6  1.1  christos  * Copyright (c) 1995 Tatu Ylonen <ylo (at) cs.hut.fi>, Espoo, Finland
      7  1.1  christos  *                    All rights reserved
      8  1.1  christos  *
      9  1.1  christos  * As far as I am concerned, the code I have written for this software
     10  1.1  christos  * can be used freely for any purpose.  Any derived versions of this
     11  1.1  christos  * software must be clearly marked as such, and if the derived work is
     12  1.1  christos  * incompatible with the protocol description in the RFC file, it must be
     13  1.1  christos  * called by a name other than "ssh" or "Secure Shell".
     14  1.1  christos  */
     15  1.1  christos 
     16  1.1  christos #ifndef AUTH_OPTIONS_H
     17  1.1  christos #define AUTH_OPTIONS_H
     18  1.1  christos 
     19  1.1  christos /* Linked list of custom environment strings */
     20  1.1  christos struct envstring {
     21  1.1  christos 	struct envstring *next;
     22  1.1  christos 	char   *s;
     23  1.1  christos };
     24  1.1  christos 
     25  1.1  christos /* Flags that may be set in authorized_keys options. */
     26  1.1  christos extern int no_port_forwarding_flag;
     27  1.1  christos extern int no_agent_forwarding_flag;
     28  1.1  christos extern int no_x11_forwarding_flag;
     29  1.1  christos extern int no_pty_flag;
     30  1.1  christos extern int no_user_rc;
     31  1.1  christos extern char *forced_command;
     32  1.1  christos extern struct envstring *custom_environment;
     33  1.1  christos extern int forced_tun_device;
     34  1.1  christos 
     35  1.1  christos int	auth_parse_options(struct passwd *, char *, char *, u_long);
     36  1.1  christos void	auth_clear_options(void);
     37  1.1  christos 
     38  1.1  christos #endif
     39