mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Make the recommend_pkg file dirauth-only.
This commit is contained in:
parent
847fc3280d
commit
853942b71e
@ -157,7 +157,6 @@ LIBTOR_APP_A_SOURCES += \
|
||||
src/feature/dirauth/dsigs_parse.c \
|
||||
src/feature/dirauth/guardfraction.c \
|
||||
src/feature/dirauth/reachability.c \
|
||||
src/feature/dirauth/recommend_pkg.c \
|
||||
src/feature/dirauth/process_descs.c \
|
||||
src/feature/dirauth/voteflags.c
|
||||
|
||||
@ -180,6 +179,7 @@ MODULE_DIRAUTH_SOURCES = \
|
||||
src/feature/dirauth/dirauth_sys.c \
|
||||
src/feature/dirauth/dircollate.c \
|
||||
src/feature/dirauth/dirvote.c \
|
||||
src/feature/dirauth/recommend_pkg.c \
|
||||
src/feature/dirauth/shared_random.c \
|
||||
src/feature/dirauth/shared_random_state.c
|
||||
|
||||
|
@ -12,6 +12,18 @@
|
||||
#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
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user