xref: /freebsd/crypto/openssh/match.h (revision 19261079b74319502c6ffa1249920079f0f69a72)
1*19261079SEd Maste /* $OpenBSD: match.h,v 1.20 2020/07/05 23:59:45 djm Exp $ */
21e8db6e2SBrian Feldman 
3b66f2d16SKris Kennaway /*
4b66f2d16SKris Kennaway  * Author: Tatu Ylonen <ylo@cs.hut.fi>
5b66f2d16SKris Kennaway  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6b66f2d16SKris Kennaway  *                    All rights reserved
7b66f2d16SKris Kennaway  *
8b66f2d16SKris Kennaway  * As far as I am concerned, the code I have written for this software
9b66f2d16SKris Kennaway  * can be used freely for any purpose.  Any derived versions of this
10b66f2d16SKris Kennaway  * software must be clearly marked as such, and if the derived work is
11b66f2d16SKris Kennaway  * incompatible with the protocol description in the RFC file, it must be
12b66f2d16SKris Kennaway  * called by a name other than "ssh" or "Secure Shell".
13b66f2d16SKris Kennaway  */
14a8f6863aSKris Kennaway #ifndef MATCH_H
15a8f6863aSKris Kennaway #define MATCH_H
16a8f6863aSKris Kennaway 
17ae1f160dSDag-Erling Smørgrav int	 match_pattern(const char *, const char *);
18557f75e5SDag-Erling Smørgrav int	 match_pattern_list(const char *, const char *, int);
19*19261079SEd Maste int	 match_usergroup_pattern_list(const char *, const char *);
20557f75e5SDag-Erling Smørgrav int	 match_hostname(const char *, const char *);
21ae1f160dSDag-Erling Smørgrav int	 match_host_and_ip(const char *, const char *, const char *);
22ae1f160dSDag-Erling Smørgrav int	 match_user(const char *, const char *, const char *, const char *);
23ae1f160dSDag-Erling Smørgrav char	*match_list(const char *, const char *, u_int *);
24*19261079SEd Maste char	*match_filter_denylist(const char *, const char *);
25*19261079SEd Maste char	*match_filter_allowlist(const char *, const char *);
26a8f6863aSKris Kennaway 
27d4af9e69SDag-Erling Smørgrav /* addrmatch.c */
28d4af9e69SDag-Erling Smørgrav int	 addr_match_list(const char *, const char *);
29b15c8340SDag-Erling Smørgrav int	 addr_match_cidr_list(const char *, const char *);
30a8f6863aSKris Kennaway #endif
31