diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-07-06 13:53:08 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-07 11:12:27 -0400 |
commit | 2432499705b0df5427604b5bf501bb22ccd73131 (patch) | |
tree | 99218cc1ce7087facc33c79a117fd28de66e28e3 /src/or/hs_circuit.c | |
parent | b490ae68c7d3a14766db898b48aeb5cee8924de1 (diff) | |
download | tor-2432499705b0df5427604b5bf501bb22ccd73131.tar.gz tor-2432499705b0df5427604b5bf501bb22ccd73131.zip |
Rename get_rend_cpath() to create_rend_cpath().
based on Nick's review.
Diffstat (limited to 'src/or/hs_circuit.c')
-rw-r--r-- | src/or/hs_circuit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/hs_circuit.c b/src/or/hs_circuit.c index 213f5cbfab..1729080c20 100644 --- a/src/or/hs_circuit.c +++ b/src/or/hs_circuit.c @@ -48,7 +48,7 @@ circuit_purpose_is_correct_for_rend(unsigned int circ_purpose, int is_service_si * If <b>is_service_side</b> is set, we are the hidden service and the final * hop of the rendezvous circuit is the client on the other side. */ static crypt_path_t * -get_rend_cpath(const uint8_t *ntor_key_seed, int is_service_side) +create_rend_cpath(const uint8_t *ntor_key_seed, int is_service_side) { uint8_t keys[HS_NTOR_KEY_EXPANSION_KDF_OUT_LEN]; crypt_path_t *cpath = NULL; @@ -77,7 +77,7 @@ get_rend_cpath(const uint8_t *ntor_key_seed, int is_service_side) * <b>rend_cell_body</b> (which must be at least DH_KEY_LEN+DIGEST_LEN bytes). */ static crypt_path_t * -get_rend_cpath_legacy(origin_circuit_t *circ, const uint8_t *rend_cell_body) +create_rend_cpath_legacy(origin_circuit_t *circ, const uint8_t *rend_cell_body) { crypt_path_t *hop = NULL; char keys[DIGEST_LEN+CPATH_KEY_MATERIAL_LEN]; @@ -177,7 +177,7 @@ hs_circuit_setup_e2e_rend_circ(origin_circuit_t *circ, return -1; } - crypt_path_t *hop = get_rend_cpath(ntor_key_seed, is_service_side); + crypt_path_t *hop = create_rend_cpath(ntor_key_seed, is_service_side); if (!hop) { log_warn(LD_REND, "Couldn't get v3 %s cpath!", is_service_side ? "service-side" : "client-side"); @@ -203,7 +203,7 @@ hs_circuit_setup_e2e_rend_circ_legacy_client(origin_circuit_t *circ, return -1; } - crypt_path_t *hop = get_rend_cpath_legacy(circ, rend_cell_body); + crypt_path_t *hop = create_rend_cpath_legacy(circ, rend_cell_body); if (!hop) { log_warn(LD_GENERAL, "Couldn't get v2 cpath."); return -1; |