summaryrefslogtreecommitdiff
path: root/src/or/hs_client.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-05-02 16:22:00 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:26 -0400
commit9ff5613a340f220a202d3f0332f091d812068881 (patch)
tree903fd8ab7b5bcd9c11752db72f5be36fa83ce1f8 /src/or/hs_client.h
parent0cb66fc900f5198fb063454801af3b4b22867e50 (diff)
downloadtor-9ff5613a340f220a202d3f0332f091d812068881.tar.gz
tor-9ff5613a340f220a202d3f0332f091d812068881.zip
test: Introduce hs_client_note_connection_attempt_succeeded().
This commit paves the way for the e2e circuit unittests. Add a stub for the prop224 equivalent of rend_client_note_connection_attempt_ended(). That function was needed for tests, since the legacy function would get called when we attach streams and our client-side tests would crash with assert failures on rend_data. This also introduces hs_client.[ch] to the codebase.
Diffstat (limited to 'src/or/hs_client.h')
-rw-r--r--src/or/hs_client.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/or/hs_client.h b/src/or/hs_client.h
new file mode 100644
index 0000000000..4f28937b03
--- /dev/null
+++ b/src/or/hs_client.h
@@ -0,0 +1,16 @@
+/* Copyright (c) 2017, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file hs_client.h
+ * \brief Header file containing client data for the HS subsytem.
+ **/
+
+#ifndef TOR_HS_CLIENT_H
+#define TOR_HS_CLIENT_H
+
+void hs_client_note_connection_attempt_succeeded(
+ const edge_connection_t *conn);
+
+#endif /* TOR_HS_CLIENT_H */
+