blob: 3a8a6ecdc1dae04b572438f0cb9924d6e2a67563 [file] [log] [blame]
dtucker@openbsd.orgfd10cf02019-03-06 22:14:23 +00001/* $OpenBSD: match.h,v 1.19 2019/03/06 22:14:23 dtucker Exp $ */
Ben Lindstrom36579d32001-01-29 07:39:26 +00002
Damien Millere4340be2000-09-16 13:29:08 +11003/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
Damien Millere4340be2000-09-16 13:29:08 +11007 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
Damien Miller450a7a12000-03-26 13:04:51 +100014#ifndef MATCH_H
15#define MATCH_H
16
Ben Lindstrom9eab2622001-12-06 18:06:05 +000017int match_pattern(const char *, const char *);
djm@openbsd.orge661a862015-05-04 06:10:48 +000018int match_pattern_list(const char *, const char *, int);
dtucker@openbsd.orgfd10cf02019-03-06 22:14:23 +000019int match_usergroup_pattern_list(const char *, const char *);
djm@openbsd.orge661a862015-05-04 06:10:48 +000020int match_hostname(const char *, const char *);
Ben Lindstrom16ae3d02001-07-04 04:02:36 +000021int match_host_and_ip(const char *, const char *, const char *);
Ben Lindstrom3fb5d002002-03-05 01:42:42 +000022int match_user(const char *, const char *, const char *, const char *);
Ben Lindstrom16ae3d02001-07-04 04:02:36 +000023char *match_list(const char *, const char *, u_int *);
djm@openbsd.org312d2f22018-07-04 13:49:31 +000024char *match_filter_blacklist(const char *, const char *);
25char *match_filter_whitelist(const char *, const char *);
Ben Lindstromb9be60a2001-03-11 01:49:19 +000026
Darren Tucker7a3935d2008-06-10 22:59:10 +100027/* addrmatch.c */
28int addr_match_list(const char *, const char *);
Damien Miller0a80ca12010-02-27 07:55:05 +110029int addr_match_cidr_list(const char *, const char *);
Damien Miller450a7a12000-03-26 13:04:51 +100030#endif