diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2019-06-05 11:38:01 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2019-06-05 11:38:01 -0700 |
commit | 31c34f6524fecd6a104a8dac04d9330b5323e3c0 (patch) | |
tree | 50b59069dc41454eee1bacd0d4c275fe0a7e576a /src/feature/rend | |
parent | a42131bf4823bed42563f30d4925462b2df02c27 (diff) | |
download | tor-31c34f6524fecd6a104a8dac04d9330b5323e3c0.tar.gz tor-31c34f6524fecd6a104a8dac04d9330b5323e3c0.zip |
Revert "hs: Implement a helper to repurpose a circuit"
This reverts commit 3789f22bcbfbc6de415a838e4c4bfb2555c7d6c3.
Diffstat (limited to 'src/feature/rend')
-rw-r--r-- | src/feature/rend/rendcommon.c | 11 | ||||
-rw-r--r-- | src/feature/rend/rendcommon.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/feature/rend/rendcommon.c b/src/feature/rend/rendcommon.c index 265ee368f1..777de2984c 100644 --- a/src/feature/rend/rendcommon.c +++ b/src/feature/rend/rendcommon.c @@ -1046,14 +1046,3 @@ rend_circuit_pk_digest_eq(const origin_circuit_t *ocirc, match: return 1; } - -/* Cleanup the given circuit of all HS v2 data structure. */ -void -rend_circ_cleanup(origin_circuit_t *circ) -{ - tor_assert(circ); - - /* Both fields are set to NULL with these. */ - crypto_pk_free(circ->intro_key); - rend_data_free(circ->rend_data); -} diff --git a/src/feature/rend/rendcommon.h b/src/feature/rend/rendcommon.h index c9a04846d7..f136863c7a 100644 --- a/src/feature/rend/rendcommon.h +++ b/src/feature/rend/rendcommon.h @@ -71,8 +71,6 @@ int rend_non_anonymous_mode_enabled(const or_options_t *options); void assert_circ_anonymity_ok(const origin_circuit_t *circ, const or_options_t *options); -void rend_circ_cleanup(origin_circuit_t *circ); - #ifdef RENDCOMMON_PRIVATE STATIC int |