policy_parse.h 756 B

12345678910111213141516171819202122232425
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file policy_parse.h
  8. * \brief Header file for policy_parse.c.
  9. **/
  10. #ifndef TOR_POLICY_PARSE_H
  11. #define TOR_POLICY_PARSE_H
  12. #include "lib/testsupport/testsupport.h"
  13. struct directory_token_t;
  14. MOCK_DECL(addr_policy_t *, router_parse_addr_policy_item_from_string,
  15. (const char *s, int assume_action, int *malformed_list));
  16. addr_policy_t *router_parse_addr_policy(struct directory_token_t *tok,
  17. unsigned fmt_flags);
  18. #endif /* !defined(TOR_POLICY_PARSE_H) */