summaryrefslogtreecommitdiff
path: root/src/or/hs_service.c
diff options
context:
space:
mode:
authorcathugger <cathugger>2017-10-03 11:16:50 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-10-03 11:19:10 -0400
commit9d90f9829ca8c2ce6eec4bcf3aaa72d95bedda24 (patch)
treea3c3084e62163130a46cc9c9f2279be9ffbf328c /src/or/hs_service.c
parent1e7e36da4b6741235e77d97fff8446a6b7ba1300 (diff)
downloadtor-9d90f9829ca8c2ce6eec4bcf3aaa72d95bedda24.tar.gz
tor-9d90f9829ca8c2ce6eec4bcf3aaa72d95bedda24.zip
hs-v3: Always generate the public key file on disk
Fixes #23748 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r--src/or/hs_service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index 5e575412b3..3d1945aa95 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -981,7 +981,8 @@ load_service_keys(hs_service_t *service)
fname = hs_path_from_filename(config->directory_path, fname_keyfile_prefix);
/* Don't ask for key creation, we want to know if we were able to load it or
* we had to generate it. Better logging! */
- kp = ed_key_init_from_file(fname, 0, LOG_INFO, NULL, 0, 0, 0, NULL);
+ kp = ed_key_init_from_file(fname, INIT_ED_KEY_SPLIT, LOG_INFO, NULL, 0, 0,
+ 0, NULL);
if (!kp) {
log_info(LD_REND, "Unable to load keys from %s. Generating it...", fname);
/* We'll now try to generate the keys and for it we want the strongest