aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_client.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2019-12-16 14:23:09 -0500
committerNeel Chauhan <neel@neelc.org>2019-12-16 14:26:12 -0500
commitec35593e4253fc148c7b55a9e27f3b399489fc59 (patch)
tree300a89fec612425bae905844c23d534c8ebf9189 /src/test/test_hs_client.c
parent5082eeba38b36fbd87fea821a1f29a85b5cdd994 (diff)
downloadtor-ec35593e4253fc148c7b55a9e27f3b399489fc59.tar.gz
tor-ec35593e4253fc148c7b55a9e27f3b399489fc59.zip
Compact lines in test_e2e_rend_circuit_setup()
Diffstat (limited to 'src/test/test_hs_client.c')
-rw-r--r--src/test/test_hs_client.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/test/test_hs_client.c b/src/test/test_hs_client.c
index ab586a1dec..7d737b2a3f 100644
--- a/src/test/test_hs_client.c
+++ b/src/test/test_hs_client.c
@@ -322,9 +322,8 @@ test_e2e_rend_circuit_setup(void *arg)
/**********************************************/
/* Setup the circuit */
- retval = hs_circuit_setup_e2e_rend_circ(or_circ,
- ntor_key_seed, sizeof(ntor_key_seed),
- 0);
+ retval = hs_circuit_setup_e2e_rend_circ(or_circ, ntor_key_seed,
+ sizeof(ntor_key_seed), 0);
tt_int_op(retval, OP_EQ, 0);
/**********************************************/
@@ -334,11 +333,9 @@ test_e2e_rend_circuit_setup(void *arg)
tt_int_op(retval, OP_EQ, 1);
/* Check that the crypt path has prop224 algorithm parameters */
- tt_int_op(
- crypto_digest_get_algorithm(or_circ->cpath->pvt_crypto.f_digest),
+ tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->pvt_crypto.f_digest),
OP_EQ, DIGEST_SHA3_256);
- tt_int_op(
- crypto_digest_get_algorithm(or_circ->cpath->pvt_crypto.b_digest),
+ tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->pvt_crypto.b_digest),
OP_EQ, DIGEST_SHA3_256);
tt_assert(or_circ->cpath->pvt_crypto.f_crypto);
tt_assert(or_circ->cpath->pvt_crypto.b_crypto);