aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_relaycrypt.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-04-08 15:43:23 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-05-03 18:15:11 +0300
commit18d61c0e6e71dace189384c8af7f4fec158969b3 (patch)
tree5bb9ffb0416667bae6e4923e96e79b90211478ab /src/test/test_relaycrypt.c
parent4bd0c4852aad724fd9639f5250c5893341cd5935 (diff)
downloadtor-18d61c0e6e71dace189384c8af7f4fec158969b3.tar.gz
tor-18d61c0e6e71dace189384c8af7f4fec158969b3.zip
Hiding crypt_path_t: Fixup broken unittests.
Diffstat (limited to 'src/test/test_relaycrypt.c')
-rw-r--r--src/test/test_relaycrypt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_relaycrypt.c b/src/test/test_relaycrypt.c
index cd58094b10..b94ee07abc 100644
--- a/src/test/test_relaycrypt.c
+++ b/src/test/test_relaycrypt.c
@@ -3,6 +3,8 @@
* Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */
+#define CRYPT_PATH_PRIVATE
+
#include "core/or/or.h"
#include "core/or/circuitbuild.h"
#define CIRCUITLIST_PRIVATE
@@ -49,7 +51,7 @@ testing_circuitset_setup(const struct testcase_t *testcase)
cs->origin_circ->base_.purpose = CIRCUIT_PURPOSE_C_GENERAL;
for (i=0; i<3; ++i) {
crypt_path_t *hop = tor_malloc_zero(sizeof(*hop));
- relay_crypto_init(&hop->crypto, KEY_MATERIAL[i], sizeof(KEY_MATERIAL[i]),
+ relay_crypto_init(&hop->private->crypto, KEY_MATERIAL[i], sizeof(KEY_MATERIAL[i]),
0, 0);
hop->state = CPATH_STATE_OPEN;
onion_append_to_cpath(&cs->origin_circ->cpath, hop);