blob: db0e6e8fb9d591b456f87f6ddcdc8ea2b6b23331 [file] [log] [blame]
Damien Millere4340be2000-09-16 13:29:08 +11001/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 * Functions to interface with the SSH_AUTHENTICATION_FD socket.
6 *
7 * As far as I am concerned, the code I have written for this software
8 * can be used freely for any purpose. Any derived versions of this
9 * software must be clearly marked as such, and if the derived work is
10 * incompatible with the protocol description in the RFC file, it must be
11 * called by a name other than "ssh" or "Secure Shell".
12 */
Damien Miller389edc42000-11-06 12:39:34 +110013
Ben Lindstrom16ae3d02001-07-04 04:02:36 +000014/* $OpenBSD: auth-options.h,v 1.9 2001/06/26 06:32:47 itojun Exp $ */
Damien Miller389edc42000-11-06 12:39:34 +110015
Damien Millerf6d9e222000-06-18 14:50:44 +100016#ifndef AUTH_OPTIONS_H
17#define AUTH_OPTIONS_H
Ben Lindstrom226cfa02001-01-22 05:34:40 +000018
19/* Linked list of custom environment strings */
20struct envstring {
21 struct envstring *next;
22 char *s;
23};
24
Damien Millerf6d9e222000-06-18 14:50:44 +100025/* Flags that may be set in authorized_keys options. */
26extern int no_port_forwarding_flag;
27extern int no_agent_forwarding_flag;
28extern int no_x11_forwarding_flag;
29extern int no_pty_flag;
30extern char *forced_command;
31extern struct envstring *custom_environment;
32
Ben Lindstrom226cfa02001-01-22 05:34:40 +000033/*
34 * return 1 if access is granted, 0 if not.
35 * side effect: sets key option flags
36 */
37int
Ben Lindstrom16ae3d02001-07-04 04:02:36 +000038auth_parse_options(struct passwd *, char *, char *, u_long);
Ben Lindstrom226cfa02001-01-22 05:34:40 +000039
Damien Miller874d77b2000-10-14 16:23:11 +110040/* reset options flags */
41void auth_clear_options(void);
42
Damien Millerf6d9e222000-06-18 14:50:44 +100043#endif