xref: /freebsd/crypto/openssh/match.h (revision 557f75e54ae47df936c7de8fb97ec70c4180a5c0)
1*557f75e5SDag-Erling Smørgrav /* $OpenBSD: match.h,v 1.16 2015/05/04 06:10:48 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 *);
18*557f75e5SDag-Erling Smørgrav int	 match_pattern_list(const char *, const char *, int);
19*557f75e5SDag-Erling Smørgrav int	 match_hostname(const char *, const char *);
20ae1f160dSDag-Erling Smørgrav int	 match_host_and_ip(const char *, const char *, const char *);
21ae1f160dSDag-Erling Smørgrav int	 match_user(const char *, const char *, const char *, const char *);
22ae1f160dSDag-Erling Smørgrav char	*match_list(const char *, const char *, u_int *);
23a8f6863aSKris Kennaway 
24d4af9e69SDag-Erling Smørgrav /* addrmatch.c */
25d4af9e69SDag-Erling Smørgrav int	 addr_match_list(const char *, const char *);
26b15c8340SDag-Erling Smørgrav int	 addr_match_cidr_list(const char *, const char *);
27a8f6863aSKris Kennaway #endif
28