summaryrefslogtreecommitdiff
path: root/src/or/rendcommon.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-04-21 14:04:39 -0400
committerDavid Goulet <dgoulet@ev0ke.net>2015-04-22 09:28:20 -0400
commit6f5f38a0bc60d3be9b6cf02e29b9065869cf6af8 (patch)
tree991881106ef6f00304891d767272288c379e9a00 /src/or/rendcommon.h
parenta4585405d6e103b9a48a1401321477ea08fa2ad1 (diff)
downloadtor-6f5f38a0bc60d3be9b6cf02e29b9065869cf6af8.tar.gz
tor-6f5f38a0bc60d3be9b6cf02e29b9065869cf6af8.zip
Add function to validate HS descriptor ID
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/rendcommon.h')
-rw-r--r--src/or/rendcommon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rendcommon.h b/src/or/rendcommon.h
index f4f2051890..b86cdb7fa6 100644
--- a/src/or/rendcommon.h
+++ b/src/or/rendcommon.h
@@ -37,6 +37,7 @@ void rend_cache_clean_v2_descs_as_dir(time_t now, size_t min_to_remove);
void rend_cache_purge(void);
void rend_cache_free_all(void);
int rend_valid_service_id(const char *query);
+int rend_valid_descriptor_id(const char *query);
int rend_cache_lookup_entry(const char *query, int version,
rend_cache_entry_t **entry_out);
int rend_cache_lookup_v2_desc_as_dir(const char *query, const char **desc);