diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-07 15:38:02 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-11-20 11:02:30 -0500 |
commit | 05766eae3099ff1542b1dc4715b824d206b7c84f (patch) | |
tree | 19d18636a5b0de7194e216a070c933ef46d8e3dc /src/or/hs_cache.h | |
parent | 04812e59dfed3c6ea4ad376595dbc8e36aaf12d2 (diff) | |
download | tor-05766eae3099ff1542b1dc4715b824d206b7c84f.tar.gz tor-05766eae3099ff1542b1dc4715b824d206b7c84f.zip |
hs-v3: Add an encoded descriptor client cache lookup function
This commit adds hs_cache_lookup_encoded_as_client() function that returns the
encoded descriptor for a given service public key. This will be needed by the
"GETINFO hs/client/desc/id/<ADDR>" control port command.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_cache.h')
-rw-r--r-- | src/or/hs_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_cache.h b/src/or/hs_cache.h index 2dcc518a71..a141634cc4 100644 --- a/src/or/hs_cache.h +++ b/src/or/hs_cache.h @@ -81,6 +81,8 @@ int hs_cache_lookup_as_dir(uint32_t version, const char *query, const hs_descriptor_t * hs_cache_lookup_as_client(const ed25519_public_key_t *key); +const char * +hs_cache_lookup_encoded_as_client(const ed25519_public_key_t *key); int hs_cache_store_as_client(const char *desc_str, const ed25519_public_key_t *identity_pk); void hs_cache_clean_as_client(time_t now); |