diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-09-12 14:40:19 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2018-09-15 16:31:22 +0300 |
commit | 27d7491f5a761c58fc687f0b816b80ff9f7a1a1d (patch) | |
tree | 33fdb6c5bfc4e55f917c9cf298df545008827910 /src/feature/hs/hs_service.h | |
parent | be142194cd447a5e31836128c9166f8a592a1649 (diff) | |
download | tor-27d7491f5a761c58fc687f0b816b80ff9f7a1a1d.tar.gz tor-27d7491f5a761c58fc687f0b816b80ff9f7a1a1d.zip |
Introduce per-service HiddenServiceExportCircuitID torrc option.
Moves code to a function, better viewed with --color-moved.
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r-- | src/feature/hs/hs_service.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h index 735266071f..e541cb28b9 100644 --- a/src/feature/hs/hs_service.h +++ b/src/feature/hs/hs_service.h @@ -210,6 +210,9 @@ typedef struct hs_service_config_t { /* Is this service ephemeral? */ unsigned int is_ephemeral : 1; + + /* Does this service export the circuit ID of its clients? */ + bool export_circuit_id; } hs_service_config_t; /* Service state. */ @@ -316,6 +319,8 @@ void hs_service_upload_desc_to_dir(const char *encoded_desc, const ed25519_public_key_t *blinded_pk, const routerstatus_t *hsdir_rs); +bool hs_service_exports_circuit_id(const ed25519_public_key_t *pk); + #ifdef HS_SERVICE_PRIVATE #ifdef TOR_UNIT_TESTS |