summaryrefslogtreecommitdiff
path: root/src/or/hs_cell.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-03-08 17:31:36 -0500
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:33 -0400
commitacc7c4ee9578e37a66dff6a09c86bee5777f782d (patch)
tree4be443a03e0419aba50c71334870864b03556bdd /src/or/hs_cell.c
parent5e710368b3e9a19862422d4bd43f2c1d8d0ceba8 (diff)
downloadtor-acc7c4ee9578e37a66dff6a09c86bee5777f782d.tar.gz
tor-acc7c4ee9578e37a66dff6a09c86bee5777f782d.zip
prop224: Establish rendezvous circuit for service
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_cell.c')
-rw-r--r--src/or/hs_cell.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/hs_cell.c b/src/or/hs_cell.c
index aff6ee04e9..18d15fe0a6 100644
--- a/src/or/hs_cell.c
+++ b/src/or/hs_cell.c
@@ -363,7 +363,6 @@ hs_cell_parse_introduce2(hs_cell_introduce2_data_t *data,
uint8_t *decrypted = NULL;
size_t encrypted_section_len;
const uint8_t *encrypted_section;
- curve25519_public_key_t client_pk;
trn_cell_introduce1_t *cell = NULL;
trn_cell_introduce_encrypted_t *enc_cell = NULL;
hs_ntor_intro_cell_keys_t *intro_keys = NULL;
@@ -404,7 +403,8 @@ hs_cell_parse_introduce2(hs_cell_introduce2_data_t *data,
/* Build the key material out of the key material found in the cell. */
intro_keys = get_introduce2_key_material(data->auth_pk, data->enc_kp,
data->subcredential,
- encrypted_section, &client_pk);
+ encrypted_section,
+ &data->client_pk);
if (intro_keys == NULL) {
log_info(LD_REND, "Invalid INTRODUCE2 encrypted data. Unable to "
"compute key material on circuit %u for service %s",
@@ -490,7 +490,6 @@ hs_cell_parse_introduce2(hs_cell_introduce2_data_t *data,
log_info(LD_REND, "Valid INTRODUCE2 cell. Launching rendezvous circuit.");
done:
- memwipe(&client_pk, 0, sizeof(client_pk));
if (intro_keys) {
memwipe(intro_keys, 0, sizeof(hs_ntor_intro_cell_keys_t));
tor_free(intro_keys);