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