summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-06 16:23:30 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:27 -0400
commit70d08f764d9912e66a2c6c0f3e4241f563d53ebd (patch)
treea7cf6f22fcf2912c26d6b6bde85babc2cee2c9cd /src/test
parentc4d17faf81d8cfe4cf943ba11be03413c58f4d44 (diff)
downloadtor-70d08f764d9912e66a2c6c0f3e4241f563d53ebd.tar.gz
tor-70d08f764d9912e66a2c6c0f3e4241f563d53ebd.zip
Explicit length checks in create_rend_cpath().
Had to also edit hs_ntor_circuit_key_expansion() to make it happen.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_hs_client.c4
-rw-r--r--src/test/test_hs_service.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/test/test_hs_client.c b/src/test/test_hs_client.c
index 9e5fe04a62..938d3d24f0 100644
--- a/src/test/test_hs_client.c
+++ b/src/test/test_hs_client.c
@@ -243,7 +243,9 @@ test_e2e_rend_circuit_setup(void *arg)
/**********************************************/
/* Setup the circuit */
- retval = hs_circuit_setup_e2e_rend_circ(or_circ, 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);
/**********************************************/
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index b5aaa0c75e..57937475c0 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -290,7 +290,9 @@ test_e2e_rend_circuit_setup(void *arg)
/* Setup the circuit: do the ntor key exchange */
{
uint8_t ntor_key_seed[DIGEST256_LEN] = {2};
- retval = hs_circuit_setup_e2e_rend_circ(or_circ, ntor_key_seed, 1);
+ retval = hs_circuit_setup_e2e_rend_circ(or_circ,
+ ntor_key_seed, sizeof(ntor_key_seed),
+ 1);
tt_int_op(retval, OP_EQ, 0);
}