10 #define TOR_HS_INTRO_H
28 const uint8_t *request,
41 #ifdef HS_INTROPOINT_PRIVATE
43 #include "trunnel/hs/cell_establish_intro.h"
44 #include "trunnel/hs/cell_introduce1.h"
48 const uint8_t *circuit_key_material,
49 size_t circuit_key_material_len);
53 unsigned int cell_type,
const void *cell);
56 const uint8_t *request,
size_t request_len);
60 uint64_t intro2_rate_per_sec,
61 uint64_t intro2_burst_per_sec);
Header for crypto_curve25519.c.
STATIC bool cell_dos_extension_parameters_are_valid(uint64_t intro2_rate_per_sec, uint64_t intro2_burst_per_sec)
STATIC int verify_establish_intro_cell(const trn_cell_establish_intro_t *cell, const uint8_t *circuit_key_material, size_t circuit_key_material_len)
STATIC int handle_introduce1(or_circuit_t *client_circ, const uint8_t *request, size_t request_len)
STATIC int validate_introduce1_parsed_cell(const trn_cell_introduce1_t *cell)
STATIC void get_auth_key_from_cell(ed25519_public_key_t *auth_key_out, unsigned int cell_type, const void *cell)
STATIC int circuit_is_suitable_for_introduce1(const or_circuit_t *circ)
void hs_intropoint_clear(hs_intropoint_t *ip)
int hs_intro_received_introduce1(or_circuit_t *circ, const uint8_t *request, size_t request_len)
int hs_intro_send_intro_established_cell(or_circuit_t *circ)
int hs_intro_received_establish_intro(or_circuit_t *circ, const uint8_t *request, size_t request_len)
int hs_intro_circuit_is_suitable_for_establish_intro(const or_circuit_t *circ)
unsigned int is_only_legacy
tor_cert_t * auth_key_cert
smartlist_t * link_specifiers
#define MOCK_DECL(rv, funcname, arglist)