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