diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-05-02 16:19:12 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-07 11:12:26 -0400 |
commit | 83249015c2741be55cf3d084660e6209323b5a1a (patch) | |
tree | 8383e455956f8ed8f202db1ee24bc440e020e847 /src/or/rendservice.c | |
parent | ba928e1ac8f13714aa6b619dd6f12ae89240d6ff (diff) | |
download | tor-83249015c2741be55cf3d084660e6209323b5a1a.tar.gz tor-83249015c2741be55cf3d084660e6209323b5a1a.zip |
Refactor circuit_init_cpath_crypto() to do prop224 rend circuits.
circuit_init_cpath_crypto() is responsible for creating the cpath of legacy
SHA1/AES128 circuits currently. We want to use it for prop224 circuits, so we
refactor it to create circuits with SHA3-256 and AES256 as well.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index f3b78c4663..d389a87ae3 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -2195,7 +2195,7 @@ rend_service_receive_introduction(origin_circuit_t *circuit, cpath->rend_dh_handshake_state = dh; dh = NULL; - if (circuit_init_cpath_crypto(cpath,keys+DIGEST_LEN,1)<0) + if (circuit_init_cpath_crypto(cpath,keys+DIGEST_LEN,1, 0)<0) goto err; memcpy(cpath->rend_circ_nonce, keys, DIGEST_LEN); |