match.h revision 204917
1128561Sphilip/* $OpenBSD: match.h,v 1.15 2010/02/26 20:29:54 djm Exp $ */ 2128561Sphilip 3128561Sphilip/* 4128561Sphilip * Author: Tatu Ylonen <ylo@cs.hut.fi> 5128561Sphilip * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6128561Sphilip * All rights reserved 7128561Sphilip * 8128561Sphilip * As far as I am concerned, the code I have written for this software 9128561Sphilip * can be used freely for any purpose. Any derived versions of this 10128561Sphilip * software must be clearly marked as such, and if the derived work is 11128561Sphilip * incompatible with the protocol description in the RFC file, it must be 12128561Sphilip * called by a name other than "ssh" or "Secure Shell". 13128561Sphilip */ 14128561Sphilip#ifndef MATCH_H 15128561Sphilip#define MATCH_H 16128561Sphilip 17128561Sphilipint match_pattern(const char *, const char *); 18128561Sphilipint match_pattern_list(const char *, const char *, u_int, int); 19128561Sphilipint match_hostname(const char *, const char *, u_int); 20128561Sphilipint match_host_and_ip(const char *, const char *, const char *); 21128561Sphilipint match_user(const char *, const char *, const char *, const char *); 22128561Sphilipchar *match_list(const char *, const char *, u_int *); 23128561Sphilip 24128561Sphilip/* addrmatch.c */ 25128561Sphilipint addr_match_list(const char *, const char *); 26128561Sphilipint addr_match_cidr_list(const char *, const char *); 27128561Sphilip#endif 28203687Sgavin