blob: 937ba04127708ac3ddbf9ca0d7225df498f67fd4 [file] [log] [blame]
Greg Hartman9768ca42017-06-22 20:49:52 -07001/* $OpenBSD: match.h,v 1.17 2017/02/03 23:01:19 djm Exp $ */
Greg Hartmanbd77cf72015-02-25 13:21:06 -08002
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 *
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 */
14#ifndef MATCH_H
15#define MATCH_H
16
17int match_pattern(const char *, const char *);
Greg Hartmanccacbc92016-02-03 09:59:44 -080018int match_pattern_list(const char *, const char *, int);
19int match_hostname(const char *, const char *);
Greg Hartmanbd77cf72015-02-25 13:21:06 -080020int match_host_and_ip(const char *, const char *, const char *);
21int match_user(const char *, const char *, const char *, const char *);
22char *match_list(const char *, const char *, u_int *);
Greg Hartman9768ca42017-06-22 20:49:52 -070023char *match_filter_list(const char *, const char *);
Greg Hartmanbd77cf72015-02-25 13:21:06 -080024
25/* addrmatch.c */
26int addr_match_list(const char *, const char *);
27int addr_match_cidr_list(const char *, const char *);
28#endif