summaryrefslogtreecommitdiff
path: root/src/or/rendmid.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2016-11-02 11:37:50 -0400
committerNick Mathewson <nickm@torproject.org>2016-12-14 15:18:36 -0500
commitd7be1fd5197ad984d45c1d9a0a033a2b95a9fd9e (patch)
treea1e1c05d80e686cc3e5edb5c61550262da69fcc7 /src/or/rendmid.c
parentc4c90d56b543887ee9bee6553725151b09891d8e (diff)
downloadtor-d7be1fd5197ad984d45c1d9a0a033a2b95a9fd9e.tar.gz
tor-d7be1fd5197ad984d45c1d9a0a033a2b95a9fd9e.zip
prop224: Introduce the new introduction point code.
(pun not intended) Now our code supports both legacy and prop224 ESTABLISH_INTRO cells :) hs_intro_received_establish_intro() is the new entry point.
Diffstat (limited to 'src/or/rendmid.c')
-rw-r--r--src/or/rendmid.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index 6b44aa14ea..f3841abf64 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -11,16 +11,19 @@
#include "circuitlist.h"
#include "circuituse.h"
#include "config.h"
+#include "crypto.h"
#include "relay.h"
#include "rendmid.h"
#include "rephist.h"
+#include "hs_circuitmap.h"
+#include "hs_intropoint.h"
/** Respond to an ESTABLISH_INTRO cell by checking the signed data and
* setting the circuit's purpose and service pk digest.
*/
int
-rend_mid_establish_intro(or_circuit_t *circ, const uint8_t *request,
- size_t request_len)
+rend_mid_establish_intro_legacy(or_circuit_t *circ, const uint8_t *request,
+ size_t request_len)
{
crypto_pk_t *pk = NULL;
char buf[DIGEST_LEN+9];