xref: /onnv-gate/usr/src/cmd/ssh/include/match.h (revision 11044:eacbb90c6866)
10Sstevel@tonic-gate /*	$OpenBSD: match.h,v 1.12 2002/03/01 13:12:10 markus Exp $	*/
20Sstevel@tonic-gate 
30Sstevel@tonic-gate #ifndef	_MATCH_H
40Sstevel@tonic-gate #define	_MATCH_H
50Sstevel@tonic-gate 
60Sstevel@tonic-gate #ifdef __cplusplus
70Sstevel@tonic-gate extern "C" {
80Sstevel@tonic-gate #endif
90Sstevel@tonic-gate 
100Sstevel@tonic-gate 
110Sstevel@tonic-gate /*
120Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
130Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
140Sstevel@tonic-gate  *                    All rights reserved
150Sstevel@tonic-gate  *
160Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
170Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
180Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
190Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
200Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
210Sstevel@tonic-gate  */
220Sstevel@tonic-gate 
230Sstevel@tonic-gate int	 match_pattern(const char *, const char *);
240Sstevel@tonic-gate int	 match_pattern_list(const char *, const char *, u_int, int);
250Sstevel@tonic-gate int	 match_hostname(const char *, const char *, u_int);
260Sstevel@tonic-gate int	 match_host_and_ip(const char *, const char *, const char *);
270Sstevel@tonic-gate int	 match_user(const char *, const char *, const char *, const char *);
280Sstevel@tonic-gate char	*match_list(const char *, const char *, u_int *);
290Sstevel@tonic-gate 
30*11044SHuie-Ying.Lee@Sun.COM /* addrmatch.c */
31*11044SHuie-Ying.Lee@Sun.COM int	 addr_match_list(const char *, const char *);
32*11044SHuie-Ying.Lee@Sun.COM 
330Sstevel@tonic-gate #ifdef __cplusplus
340Sstevel@tonic-gate }
350Sstevel@tonic-gate #endif
360Sstevel@tonic-gate 
370Sstevel@tonic-gate #endif /* _MATCH_H */
38