aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/recommend_pkg.h
blob: dcd9f8be8af51b082993e3c70f3a990420a09055 (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
26
27
28
29
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */

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

#ifndef TOR_RECOMMEND_PKG_H
#define TOR_RECOMMEND_PKG_H

#ifdef HAVE_MODULE_DIRAUTH
int validate_recommended_package_line(const char *line);

#else

static inline int
validate_recommended_package_line(const char *line)
{
  (void) line;
  return 0;
}

#endif /* defined(HAVE_MODULE_DIRAUTH) */

#endif /* !defined(TOR_RECOMMEND_PKG_H) */