match.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /* $OpenBSD: match.h,v 1.20 2020/07/05 23:59:45 djm Exp $ */
  2. /*
  3. * Author: Tatu Ylonen <ylo@cs.hut.fi>
  4. * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  5. * All rights reserved
  6. *
  7. * As far as I am concerned, the code I have written for this software
  8. * can be used freely for any purpose. Any derived versions of this
  9. * software must be clearly marked as such, and if the derived work is
  10. * incompatible with the protocol description in the RFC file, it must be
  11. * called by a name other than "ssh" or "Secure Shell".
  12. */
  13. #ifndef MATCH_H
  14. #define MATCH_H
  15. int match_pattern(const char *, const char *);
  16. int match_pattern_list(const char *, const char *, int);
  17. int match_usergroup_pattern_list(const char *, const char *);
  18. int match_hostname(const char *, const char *);
  19. int match_host_and_ip(const char *, const char *, const char *);
  20. int match_user(const char *, const char *, const char *, const char *);
  21. char *match_list(const char *, const char *, u_int *);
  22. char *match_filter_denylist(const char *, const char *);
  23. char *match_filter_allowlist(const char *, const char *);
  24. /* addrmatch.c */
  25. int addr_match_list(const char *, const char *);
  26. int addr_match_cidr_list(const char *, const char *);
  27. #endif