xref: /titanic_50/usr/src/cmd/ssh/include/match.h (revision b494511a9cf72b1fc4eb13a0e593f55c624ab829)
1 /*	$OpenBSD: match.h,v 1.12 2002/03/01 13:12:10 markus Exp $	*/
2 
3 #ifndef	_MATCH_H
4 #define	_MATCH_H
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 
11 /*
12  * Author: Tatu Ylonen <ylo@cs.hut.fi>
13  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
14  *                    All rights reserved
15  *
16  * As far as I am concerned, the code I have written for this software
17  * can be used freely for any purpose.  Any derived versions of this
18  * software must be clearly marked as such, and if the derived work is
19  * incompatible with the protocol description in the RFC file, it must be
20  * called by a name other than "ssh" or "Secure Shell".
21  */
22 
23 int	 match_pattern(const char *, const char *);
24 int	 match_pattern_list(const char *, const char *, u_int, int);
25 int	 match_hostname(const char *, const char *, u_int);
26 int	 match_host_and_ip(const char *, const char *, const char *);
27 int	 match_user(const char *, const char *, const char *, const char *);
28 char	*match_list(const char *, const char *, u_int *);
29 
30 /* addrmatch.c */
31 int	 addr_match_list(const char *, const char *);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* _MATCH_H */
38