aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_ident.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-06-29 13:29:23 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-24 13:03:28 -0400
commit8e2854372d777d6be63d1bf766ca6db9100490de (patch)
treeeed4c9eb96908cdf0a7def3b2a7832424c419aec /src/or/hs_ident.h
parentb13ee8e4ae59f85ce75800aa7dd90cfe58c04a5e (diff)
downloadtor-8e2854372d777d6be63d1bf766ca6db9100490de.tar.gz
tor-8e2854372d777d6be63d1bf766ca6db9100490de.zip
prop224: Helper function to assert on invalid client intro circuit
Put all the possible assert() we can do on a client introduction circuit in one helper function to make sure it is valid and usable. It is disabled for now so gcc doesn't complain that we have a unused function. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_ident.h')
-rw-r--r--src/or/hs_ident.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/hs_ident.h b/src/or/hs_ident.h
index e259fde54d..cfcde781d1 100644
--- a/src/or/hs_ident.h
+++ b/src/or/hs_ident.h
@@ -126,5 +126,8 @@ hs_ident_edge_conn_t *hs_ident_edge_conn_new(
const ed25519_public_key_t *identity_pk);
void hs_ident_edge_conn_free(hs_ident_edge_conn_t *ident);
+/* Validators */
+int hs_ident_intro_circ_is_valid(const hs_ident_circuit_t *ident);
+
#endif /* TOR_HS_IDENT_H */