aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_intropoint.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-01-15 10:13:37 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-07-07 15:38:20 -0400
commitb50f39fb6fc9d9a4bbb86d760291d6e88bf0987a (patch)
tree6b36308eb5b84e7854a4d2e3980f591b2e4199bb /src/or/hs_intropoint.h
parent948158df33c4cbfa03f2aa4990097b4e9de664a1 (diff)
downloadtor-b50f39fb6fc9d9a4bbb86d760291d6e88bf0987a.tar.gz
tor-b50f39fb6fc9d9a4bbb86d760291d6e88bf0987a.zip
prop224: Add common intropoint object
Groundwork for more prop224 service and client code. This object contains common data that both client and service uses. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_intropoint.h')
-rw-r--r--src/or/hs_intropoint.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/hs_intropoint.h b/src/or/hs_intropoint.h
index 163ed810e7..bfb1331ba0 100644
--- a/src/or/hs_intropoint.h
+++ b/src/or/hs_intropoint.h
@@ -9,6 +9,9 @@
#ifndef TOR_HS_INTRO_H
#define TOR_HS_INTRO_H
+#include "crypto_curve25519.h"
+#include "torcert.h"
+
/* Authentication key type in an ESTABLISH_INTRO cell. */
enum hs_intro_auth_key_type {
HS_INTRO_AUTH_KEY_TYPE_LEGACY0 = 0x00,
@@ -24,6 +27,15 @@ typedef enum {
HS_INTRO_ACK_STATUS_CANT_RELAY = 0x0003,
} hs_intro_ack_status_t;
+/* Object containing introduction point common data between the service and
+ * the client side. */
+typedef struct hs_intropoint_t {
+ /* Authentication key certificate from the descriptor. */
+ tor_cert_t *auth_key_cert;
+ /* A list of link specifier. */
+ smartlist_t *link_specifiers;
+} hs_intropoint_t;
+
int hs_intro_received_establish_intro(or_circuit_t *circ,
const uint8_t *request,
size_t request_len);