diff options
Diffstat (limited to 'src/test/test_hs_control.c')
-rw-r--r-- | src/test/test_hs_control.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/test_hs_control.c b/src/test/test_hs_control.c index dfc1e5445e..e4999a4ed5 100644 --- a/src/test/test_hs_control.c +++ b/src/test/test_hs_control.c @@ -25,7 +25,6 @@ #include "feature/hs/hs_client.h" #include "feature/hs/hs_control.h" #include "feature/nodelist/nodelist.h" -#include "feature/rend/rendservice.h" #include "feature/nodelist/node_st.h" #include "feature/nodelist/routerstatus_st.h" @@ -797,7 +796,7 @@ test_hs_control_add_onion_helper_add_service(void *arg) hs_service_authorized_client_t *client_good, *client_bad; smartlist_t *list_good, *list_bad; hs_service_ht *global_map; - rend_service_port_config_t *portcfg; + hs_port_config_t *portcfg; smartlist_t *portcfgs; char *address_out_good, *address_out_bad; hs_service_t *service_good = NULL; @@ -808,7 +807,7 @@ test_hs_control_add_onion_helper_add_service(void *arg) hs_init(); global_map = get_hs_service_map(); - portcfg = rend_service_parse_port_config("8080", ",", NULL); + portcfg = hs_parse_port_config("8080", ",", NULL); portcfgs = smartlist_new(); smartlist_add(portcfgs, portcfg); @@ -831,7 +830,7 @@ test_hs_control_add_onion_helper_add_service(void *arg) smartlist_add(list_good, client_good); add_onion_helper_add_service(HS_VERSION_THREE, &sk_good, portcfgs, 1, 1, - REND_V3_AUTH, NULL, list_good, &address_out_good); + list_good, &address_out_good); service_good = find_service(global_map, &pk_good); tt_int_op(smartlist_len(service_good->config.clients), OP_EQ, 1); @@ -841,12 +840,12 @@ test_hs_control_add_onion_helper_add_service(void *arg) list_bad = smartlist_new(); smartlist_add(list_bad, client_bad); - portcfg = rend_service_parse_port_config("8080", ",", NULL); + portcfg = hs_parse_port_config("8080", ",", NULL); portcfgs = smartlist_new(); smartlist_add(portcfgs, portcfg); add_onion_helper_add_service(HS_VERSION_THREE, &sk_bad, portcfgs, 1, 1, - REND_V3_AUTH, NULL, list_bad, &address_out_bad); + list_bad, &address_out_bad); service_bad = find_service(global_map, &pk_bad); |