xref: /freebsd/crypto/openssh/match.h (revision d34048812292b714a0bf99967270d18fe3097c62)
1 /* $OpenBSD: match.h,v 1.18 2018/07/04 13:49:31 djm Exp $ */
2 
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 
17 int	 match_pattern(const char *, const char *);
18 int	 match_pattern_list(const char *, const char *, int);
19 int	 match_hostname(const char *, const char *);
20 int	 match_host_and_ip(const char *, const char *, const char *);
21 int	 match_user(const char *, const char *, const char *, const char *);
22 char	*match_list(const char *, const char *, u_int *);
23 char	*match_filter_blacklist(const char *, const char *);
24 char	*match_filter_whitelist(const char *, const char *);
25 
26 /* addrmatch.c */
27 int	 addr_match_list(const char *, const char *);
28 int	 addr_match_cidr_list(const char *, const char *);
29 #endif
30