aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-09-15 16:33:31 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2018-09-15 16:52:36 +0300
commit9b511dc5d6a9e44bd8c8c644ad9445cab7cdafe2 (patch)
tree9bfd824f5f790295477178ebe45232213ce042d2 /src/feature/hs/hs_service.c
parent8f085841ef40f00bbc2bb146a2d555aba527738f (diff)
downloadtor-9b511dc5d6a9e44bd8c8c644ad9445cab7cdafe2.tar.gz
tor-9b511dc5d6a9e44bd8c8c644ad9445cab7cdafe2.zip
Change HiddenServiceExportCircuitID to take a string parameter: the protocol.
This patch changes HiddenServiceExportCircuitID so instead of being a boolean it takes a string, which is the protocol. Currently only the 'haproxy' protocol is defined. See: https://bugs.torproject.org/4700
Diffstat (limited to 'src/feature/hs/hs_service.c')
-rw-r--r--src/feature/hs/hs_service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c
index 75d7cb75ed..e87cb990f5 100644
--- a/src/feature/hs/hs_service.c
+++ b/src/feature/hs/hs_service.c
@@ -3764,15 +3764,15 @@ hs_service_set_conn_addr_port(const origin_circuit_t *circ,
/** Does the service with identity pubkey <b>pk</b> export the circuit IDs of
* its clients? */
-bool
+hs_circuit_id_protocol_t
hs_service_exports_circuit_id(const ed25519_public_key_t *pk)
{
hs_service_t *service = find_service(hs_service_map, pk);
if (!service) {
- return 0;
+ return HS_CIRCUIT_ID_PROTOCOL_NONE;
}
- return service->config.export_circuit_id;
+ return service->config.circuit_id_protocol;
}
/* Add to file_list every filename used by a configured hidden service, and to