aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_client.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-06 16:39:48 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:27 -0400
commitf35f52e8697407dde391ebc4f1be6ba76e1a1bb2 (patch)
treee7fa941147878ba1bb48866a2d3bce77c86279a4 /src/test/test_hs_client.c
parent70d08f764d9912e66a2c6c0f3e4241f563d53ebd (diff)
downloadtor-f35f52e8697407dde391ebc4f1be6ba76e1a1bb2.tar.gz
tor-f35f52e8697407dde391ebc4f1be6ba76e1a1bb2.zip
Hide crypto_digest_t again and use an accessor for tests.
Diffstat (limited to 'src/test/test_hs_client.c')
-rw-r--r--src/test/test_hs_client.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/test_hs_client.c b/src/test/test_hs_client.c
index 938d3d24f0..77fee88eda 100644
--- a/src/test/test_hs_client.c
+++ b/src/test/test_hs_client.c
@@ -188,8 +188,10 @@ test_e2e_rend_circuit_setup_legacy(void *arg)
tt_int_op(retval, OP_EQ, 1);
/* Check the digest algo */
- tt_int_op(or_circ->cpath->f_digest->algorithm, OP_EQ, DIGEST_SHA1);
- tt_int_op(or_circ->cpath->b_digest->algorithm, OP_EQ, DIGEST_SHA1);
+ tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->f_digest),
+ OP_EQ, DIGEST_SHA1);
+ tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->b_digest),
+ OP_EQ, DIGEST_SHA1);
tt_assert(or_circ->cpath->f_crypto);
tt_assert(or_circ->cpath->b_crypto);
@@ -255,8 +257,10 @@ 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(or_circ->cpath->f_digest->algorithm, OP_EQ, DIGEST_SHA3_256);
- tt_int_op(or_circ->cpath->b_digest->algorithm, OP_EQ, DIGEST_SHA3_256);
+ tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->f_digest),
+ OP_EQ, DIGEST_SHA3_256);
+ tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->b_digest),
+ OP_EQ, DIGEST_SHA3_256);
tt_assert(or_circ->cpath->f_crypto);
tt_assert(or_circ->cpath->b_crypto);