aboutsummaryrefslogtreecommitdiff
path: root/src/or/dircollate.c
AgeCommit message (Expand)Author
2018-04-27mod: Move dirauth specific files to its own moduleDavid Goulet
2018-04-22Remove MIN_METHOD_FOR_ED25519_ID_VOTINGNick Mathewson
2017-12-08Convert remaining function (mostly static) to new free styleNick Mathewson
2017-12-08Change the free macro convention in the rest of src/or/*.hNick Mathewson
2017-08-03Switch to offsetof()Neel Chauhan
2017-03-15Run the copyright update script.Nick Mathewson
2016-10-17Write a bunch of module documentation.Nick Mathewson
2016-10-05dircollate: Use correct tor_calloc args.Muhammad Falak R Wani
2016-06-11Add the -Wextra-semi warning from clang, and fix the cases where it triggersNick Mathewson
2016-03-26Whitespace fixesNick Mathewson
2016-03-26Fix all doxygen warnings (other than missing docs)Nick Mathewson
2016-03-21Merge branch 'maint-0.2.7'Nick Mathewson
2016-03-21Use nth consistently in dircollate.h.Nick Mathewson
2016-03-21Assert that dircollator is collated when we're reading its output.Nick Mathewson
2016-03-21Fix another case of 17668: Add NoEdConsensusNick Mathewson
2016-03-21Document dircollate.c (and remove an unused global)Nick Mathewson
2016-02-27Update the copyright year.Nick Mathewson
2016-02-22Enable ed25519 collator in voting.Nick Mathewson
2015-08-18Fix typo in double_digest_map typeSebastian Hahn
2015-06-01Fix some memory leaks in ed25519 code and testsNick Mathewson
2015-06-01Appease make check-spacesAndrea Shepard
2015-05-28Implement ed25519 identity collation for voting.Nick Mathewson
2015-05-28Refactor code that matches up routers with the same identity in votesNick Mathewson
ht .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2018, 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) */