tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

policy_parse.h (756B)


      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-2021, The Tor Project, Inc. */
      5 /* See LICENSE for licensing information */
      6 
      7 /**
      8 * \file policy_parse.h
      9 * \brief Header file for policy_parse.c.
     10 **/
     11 
     12 #ifndef TOR_POLICY_PARSE_H
     13 #define TOR_POLICY_PARSE_H
     14 
     15 #include "lib/testsupport/testsupport.h"
     16 
     17 struct directory_token_t;
     18 
     19 MOCK_DECL(addr_policy_t *, router_parse_addr_policy_item_from_string,
     20         (const char *s, int assume_action, int *malformed_list));
     21 
     22 addr_policy_t *router_parse_addr_policy(struct directory_token_t *tok,
     23                                        unsigned fmt_flags);
     24 
     25 #endif /* !defined(TOR_POLICY_PARSE_H) */