Home | History | Annotate | Line # | Download | only in dist
auth-options.h revision 1.4.4.1
      1  1.4.4.1       snj /*	$NetBSD: auth-options.h,v 1.4.4.1 2017/08/15 05:27:51 snj Exp $	*/
      2  1.4.4.1       snj /* $OpenBSD: auth-options.h,v 1.22 2016/11/30 02:57:40 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.3      adam extern int key_is_cert_authority;
     35      1.3      adam extern char *authorized_principals;
     36      1.1  christos 
     37      1.4  christos int	auth_parse_options(struct passwd *, const char *, const char *, u_long);
     38      1.1  christos void	auth_clear_options(void);
     39  1.4.4.1       snj int	auth_cert_options(struct sshkey *, struct passwd *, const char **);
     40      1.1  christos 
     41      1.1  christos #endif
     42