key: Make ed_key_init_from_file() take an or_options_t
commitcb466ee7d6f7f475783847a7201eaa6a3e1c711b
authorDavid Goulet <dgoulet@torproject.org>
Wed, 22 Aug 2018 15:32:57 +0000 (22 11:32 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 22 Aug 2018 15:32:57 +0000 (22 11:32 -0400)
tree89febd1b50ae5a426670ca1702e0e2698a3119d6
parente619fd02ef9a9926731244b2b19024a04f93fd5a
key: Make ed_key_init_from_file() take an or_options_t

Part of #27215, we need to call the ed_key_init_from_file function during
option_validate() which is before the global_options variable is set.

This commit make ed_key_init_from_file() stop using get_options() and instead
now has a or_options_t parameter.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/feature/hs/hs_service.c
src/feature/relay/routerkeys.c
src/feature/relay/routerkeys.h
src/test/test_routerkeys.c