xref: /titanic_44/usr/src/cmd/ssh/include/match.h (revision b07b2f5c1a9b43b43daa3f5087f57ede3d664810)
17c478bd9Sstevel@tonic-gate /*	$OpenBSD: match.h,v 1.12 2002/03/01 13:12:10 markus Exp $	*/
27c478bd9Sstevel@tonic-gate 
37c478bd9Sstevel@tonic-gate #ifndef	_MATCH_H
47c478bd9Sstevel@tonic-gate #define	_MATCH_H
57c478bd9Sstevel@tonic-gate 
67c478bd9Sstevel@tonic-gate #ifdef __cplusplus
77c478bd9Sstevel@tonic-gate extern "C" {
87c478bd9Sstevel@tonic-gate #endif
97c478bd9Sstevel@tonic-gate 
107c478bd9Sstevel@tonic-gate 
117c478bd9Sstevel@tonic-gate /*
127c478bd9Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
137c478bd9Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
147c478bd9Sstevel@tonic-gate  *                    All rights reserved
157c478bd9Sstevel@tonic-gate  *
167c478bd9Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
177c478bd9Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
187c478bd9Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
197c478bd9Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
207c478bd9Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
217c478bd9Sstevel@tonic-gate  */
227c478bd9Sstevel@tonic-gate 
237c478bd9Sstevel@tonic-gate int	 match_pattern(const char *, const char *);
247c478bd9Sstevel@tonic-gate int	 match_pattern_list(const char *, const char *, u_int, int);
257c478bd9Sstevel@tonic-gate int	 match_hostname(const char *, const char *, u_int);
267c478bd9Sstevel@tonic-gate int	 match_host_and_ip(const char *, const char *, const char *);
277c478bd9Sstevel@tonic-gate int	 match_user(const char *, const char *, const char *, const char *);
287c478bd9Sstevel@tonic-gate char	*match_list(const char *, const char *, u_int *);
297c478bd9Sstevel@tonic-gate 
30*b07b2f5cSHuie-Ying Lee /* addrmatch.c */
31*b07b2f5cSHuie-Ying Lee int	 addr_match_list(const char *, const char *);
32*b07b2f5cSHuie-Ying Lee 
337c478bd9Sstevel@tonic-gate #ifdef __cplusplus
347c478bd9Sstevel@tonic-gate }
357c478bd9Sstevel@tonic-gate #endif
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate #endif /* _MATCH_H */
38