aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_client.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2019-08-23 14:04:05 -0400
committerNeel Chauhan <neel@neelc.org>2019-08-23 14:04:05 -0400
commit14654d5c97663d5f2552b9f27620c8d829dd8d52 (patch)
treefcabd6d7af7d4da6097ec09aa43fc20d3acd17f4 /src/test/test_hs_client.c
parentd475d7c2fb3c0ed5120c50011b187f6957a4f52c (diff)
downloadtor-14654d5c97663d5f2552b9f27620c8d829dd8d52.tar.gz
tor-14654d5c97663d5f2552b9f27620c8d829dd8d52.zip
Remove the unused circuit_type field from hs_ident_circuit_t and hs_ident_circuit_new()
Diffstat (limited to 'src/test/test_hs_client.c')
-rw-r--r--src/test/test_hs_client.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/test/test_hs_client.c b/src/test/test_hs_client.c
index fb497d52a1..b777dafdfb 100644
--- a/src/test/test_hs_client.c
+++ b/src/test/test_hs_client.c
@@ -160,8 +160,7 @@ helper_get_circ_and_stream_for_test(origin_circuit_t **circ_out,
or_circ->rend_data = rend_data_dup(conn_rend_data);
} else {
/* prop224: Setup hs ident on the circuit */
- or_circ->hs_ident = hs_ident_circuit_new(&service_pk,
- HS_IDENT_CIRCUIT_RENDEZVOUS);
+ or_circ->hs_ident = hs_ident_circuit_new(&service_pk);
}
TO_CIRCUIT(or_circ)->state = CIRCUIT_STATE_OPEN;
@@ -964,8 +963,7 @@ test_close_intro_circuits_new_desc(void *arg)
const hs_desc_intro_point_t *ip =
smartlist_get(desc1->encrypted_data.intro_points, 0);
tt_assert(ip);
- ocirc->hs_ident = hs_ident_circuit_new(&service_kp.pubkey,
- HS_IDENT_CIRCUIT_INTRO);
+ ocirc->hs_ident = hs_ident_circuit_new(&service_kp.pubkey);
ed25519_pubkey_copy(&ocirc->hs_ident->intro_auth_pk,
&ip->auth_key_cert->signed_key);
}
@@ -1066,8 +1064,7 @@ test_close_intro_circuits_cache_clean(void *arg)
const hs_desc_intro_point_t *ip =
smartlist_get(desc1->encrypted_data.intro_points, 0);
tt_assert(ip);
- ocirc->hs_ident = hs_ident_circuit_new(&service_kp.pubkey,
- HS_IDENT_CIRCUIT_INTRO);
+ ocirc->hs_ident = hs_ident_circuit_new(&service_kp.pubkey);
ed25519_pubkey_copy(&ocirc->hs_ident->intro_auth_pk,
&ip->auth_key_cert->signed_key);
}