aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_ob.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2020-01-27 17:06:36 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2020-01-28 01:07:28 +0200
commitda15feb0d358fe95394aed75fae672ad8459ceee (patch)
tree88274d53469a1007566db793927f317275fac833 /src/test/test_hs_ob.c
parent942543253a30b8231c46eeaeb44f7ba174152113 (diff)
downloadtor-da15feb0d358fe95394aed75fae672ad8459ceee.tar.gz
tor-da15feb0d358fe95394aed75fae672ad8459ceee.zip
Refresh OB keys when we build a new descriptor.
We now assign OB subcredentials to the service instead of computing them on the spot. See hs_ob_refresh_keys() for more details.
Diffstat (limited to 'src/test/test_hs_ob.c')
-rw-r--r--src/test/test_hs_ob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_hs_ob.c b/src/test/test_hs_ob.c
index 848a488be2..c2d62e354a 100644
--- a/src/test/test_hs_ob.c
+++ b/src/test/test_hs_ob.c
@@ -8,6 +8,7 @@
#define CONFIG_PRIVATE
#define HS_SERVICE_PRIVATE
+#define HS_OB_PRIVATE
#include "test/test.h"
#include "test/test_helpers.h"
@@ -191,7 +192,7 @@ test_get_subcredentials(void *arg)
smartlist_add(config.ob_master_pubkeys, &onion_addr_kp_1.pubkey);
hs_subcredential_t *subcreds = NULL;
- size_t num = hs_ob_get_subcredentials(&config, &subcreds);
+ size_t num = compute_subcredentials(&config, &subcreds);
tt_uint_op(num, OP_EQ, 3);
/* Validate the subcredentials we just got. We'll build them oursevles with