diff options
author | Neel Chauhan <neel@neelc.org> | 2019-08-23 14:04:05 -0400 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2019-08-23 14:04:05 -0400 |
commit | 14654d5c97663d5f2552b9f27620c8d829dd8d52 (patch) | |
tree | fcabd6d7af7d4da6097ec09aa43fc20d3acd17f4 /src/feature/hs/hs_ident.c | |
parent | d475d7c2fb3c0ed5120c50011b187f6957a4f52c (diff) | |
download | tor-14654d5c97663d5f2552b9f27620c8d829dd8d52.tar.gz tor-14654d5c97663d5f2552b9f27620c8d829dd8d52.zip |
Remove the unused circuit_type field from hs_ident_circuit_t and hs_ident_circuit_new()
Diffstat (limited to 'src/feature/hs/hs_ident.c')
-rw-r--r-- | src/feature/hs/hs_ident.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/feature/hs/hs_ident.c b/src/feature/hs/hs_ident.c index 8fd0013941..a00e55ec23 100644 --- a/src/feature/hs/hs_ident.c +++ b/src/feature/hs/hs_ident.c @@ -13,14 +13,10 @@ /* Return a newly allocated circuit identifier. The given public key is copied * identity_pk into the identifier. */ hs_ident_circuit_t * -hs_ident_circuit_new(const ed25519_public_key_t *identity_pk, - hs_ident_circuit_type_t circuit_type) +hs_ident_circuit_new(const ed25519_public_key_t *identity_pk) { - tor_assert(circuit_type == HS_IDENT_CIRCUIT_INTRO || - circuit_type == HS_IDENT_CIRCUIT_RENDEZVOUS); hs_ident_circuit_t *ident = tor_malloc_zero(sizeof(*ident)); ed25519_pubkey_copy(&ident->identity_pk, identity_pk); - ident->circuit_type = circuit_type; return ident; } |