aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dsigs_parse.h
blob: fec51ba488e580e948b63db91f115d28b848493a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * \file dsigs_parse.h
 * \brief Header file for dsigs_parse.c.
 **/

#ifndef TOR_DSIGS_PARSE_H
#define TOR_DSIGS_PARSE_H

ns_detached_signatures_t *networkstatus_parse_detached_signatures(
                                      const char *s, const char *eos);

void ns_detached_signatures_free_(ns_detached_signatures_t *s);
#define ns_detached_signatures_free(s) \
  FREE_AND_NULL(ns_detached_signatures_t, ns_detached_signatures_free_, (s))

#endif