blob: 5faf668190f410f8c54b58f1f16f92e8dcf3ae79 [file] [log] [blame]
Ben Lindstromf0c50292001-06-25 05:17:53 +00001/* $OpenBSD: match.h,v 1.8 2001/06/24 05:25:10 markus Exp $ */
Ben Lindstrom36579d32001-01-29 07:39:26 +00002
Damien Millere4340be2000-09-16 13:29:08 +11003/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
Damien Millere4340be2000-09-16 13:29:08 +11007 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
Damien Miller450a7a12000-03-26 13:04:51 +100014#ifndef MATCH_H
15#define MATCH_H
16
Ben Lindstromf0c50292001-06-25 05:17:53 +000017int match_pattern(const char *s, const char *pattern);
18int match_hostname(const char *host, const char *pattern, u_int len);
19int match_host_and_ip(const char *host, const char *ip, const char *p);
20int match_user(const char *u, const char *h, const char *i, const char *p);
Ben Lindstromb9be60a2001-03-11 01:49:19 +000021char *match_list(const char *client, const char *server, u_int *next);
22
Damien Miller450a7a12000-03-26 13:04:51 +100023#endif