150a69bb5SSascha Wildner /* $OpenBSD: match.h,v 1.20 2020/07/05 23:59:45 djm Exp $ */ 218de8d7fSPeter Avalos 318de8d7fSPeter Avalos /* 418de8d7fSPeter Avalos * Author: Tatu Ylonen <ylo@cs.hut.fi> 518de8d7fSPeter Avalos * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 618de8d7fSPeter Avalos * All rights reserved 718de8d7fSPeter Avalos * 818de8d7fSPeter Avalos * As far as I am concerned, the code I have written for this software 918de8d7fSPeter Avalos * can be used freely for any purpose. Any derived versions of this 1018de8d7fSPeter Avalos * software must be clearly marked as such, and if the derived work is 1118de8d7fSPeter Avalos * incompatible with the protocol description in the RFC file, it must be 1218de8d7fSPeter Avalos * called by a name other than "ssh" or "Secure Shell". 1318de8d7fSPeter Avalos */ 1418de8d7fSPeter Avalos #ifndef MATCH_H 1518de8d7fSPeter Avalos #define MATCH_H 1618de8d7fSPeter Avalos 1718de8d7fSPeter Avalos int match_pattern(const char *, const char *); 18e9778795SPeter Avalos int match_pattern_list(const char *, const char *, int); 19664f4763Szrj int match_usergroup_pattern_list(const char *, const char *); 20e9778795SPeter Avalos int match_hostname(const char *, const char *); 2118de8d7fSPeter Avalos int match_host_and_ip(const char *, const char *, const char *); 2218de8d7fSPeter Avalos int match_user(const char *, const char *, const char *, const char *); 2318de8d7fSPeter Avalos char *match_list(const char *, const char *, u_int *); 2450a69bb5SSascha Wildner char *match_filter_denylist(const char *, const char *); 2550a69bb5SSascha Wildner char *match_filter_allowlist(const char *, const char *); 2618de8d7fSPeter Avalos 2718de8d7fSPeter Avalos /* addrmatch.c */ 2818de8d7fSPeter Avalos int addr_match_list(const char *, const char *); 29856ea928SPeter Avalos int addr_match_cidr_list(const char *, const char *); 3018de8d7fSPeter Avalos #endif 31