diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-13 09:38:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-13 09:38:59 -0400 |
commit | 28ec2d9c2cbb300af8ba467898626020add977c4 (patch) | |
tree | fe4a55646b06e255bddc2f31fb6533485513bc86 /src/test/test_hs_service.c | |
parent | 755c88a4746b8b58d1b36486a611abc2d4f44144 (diff) | |
parent | bf68c78e942b196e65e2d8ae6f172a5a6a363561 (diff) | |
download | tor-28ec2d9c2cbb300af8ba467898626020add977c4.tar.gz tor-28ec2d9c2cbb300af8ba467898626020add977c4.zip |
Merge remote-tracking branch 'dgoulet/ticket21919_031_01'
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r-- | src/test/test_hs_service.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index d575e2b773..ec9cc4579b 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -28,8 +28,8 @@ test_gen_establish_intro_cell(void *arg) ssize_t retval; uint8_t circuit_key_material[DIGEST_LEN] = {0}; uint8_t buf[RELAY_PAYLOAD_SIZE]; - hs_cell_establish_intro_t *cell_out = NULL; - hs_cell_establish_intro_t *cell_in = NULL; + trn_cell_establish_intro_t *cell_out = NULL; + trn_cell_establish_intro_t *cell_in = NULL; crypto_rand((char *) circuit_key_material, sizeof(circuit_key_material)); @@ -46,7 +46,7 @@ test_gen_establish_intro_cell(void *arg) /* Parse it as the receiver */ { - ssize_t parse_result = hs_cell_establish_intro_parse(&cell_in, + ssize_t parse_result = trn_cell_establish_intro_parse(&cell_in, buf, sizeof(buf)); tt_int_op(parse_result, >=, 0); @@ -57,8 +57,8 @@ test_gen_establish_intro_cell(void *arg) } done: - hs_cell_establish_intro_free(cell_out); - hs_cell_establish_intro_free(cell_in); + trn_cell_establish_intro_free(cell_out); + trn_cell_establish_intro_free(cell_in); } /* Mocked ed25519_sign_prefixed() function that always fails :) */ @@ -80,7 +80,7 @@ static void test_gen_establish_intro_cell_bad(void *arg) { (void) arg; - hs_cell_establish_intro_t *cell = NULL; + trn_cell_establish_intro_t *cell = NULL; uint8_t circuit_key_material[DIGEST_LEN] = {0}; MOCK(ed25519_sign_prefixed, mock_ed25519_sign_prefixed); @@ -98,7 +98,7 @@ test_gen_establish_intro_cell_bad(void *arg) tt_assert(!cell); done: - hs_cell_establish_intro_free(cell); + trn_cell_establish_intro_free(cell); UNMOCK(ed25519_sign_prefixed); } |