Annotation of src/usr.bin/ssh/match.h, Revision 1.20
1.20 ! djm 1: /* $OpenBSD: match.h,v 1.19 2019/03/06 22:14:23 dtucker Exp $ */
1.6 niklas 2:
1.3 deraadt 3: /*
1.4 markus 4: * Author: Tatu Ylonen <ylo@cs.hut.fi>
5: * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6: * All rights reserved
1.3 deraadt 7: *
1.4 markus 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".
1.3 deraadt 13: */
1.1 markus 14: #ifndef MATCH_H
15: #define MATCH_H
16:
1.10 markus 17: int match_pattern(const char *, const char *);
1.16 djm 18: int match_pattern_list(const char *, const char *, int);
1.19 dtucker 19: int match_usergroup_pattern_list(const char *, const char *);
1.16 djm 20: int match_hostname(const char *, const char *);
1.9 itojun 21: int match_host_and_ip(const char *, const char *, const char *);
1.12 markus 22: int match_user(const char *, const char *, const char *, const char *);
1.9 itojun 23: char *match_list(const char *, const char *, u_int *);
1.20 ! djm 24: char *match_filter_denylist(const char *, const char *);
! 25: char *match_filter_allowlist(const char *, const char *);
1.14 djm 26:
27: /* addrmatch.c */
28: int addr_match_list(const char *, const char *);
1.15 djm 29: int addr_match_cidr_list(const char *, const char *);
1.1 markus 30: #endif