Tor  0.4.7.0-alpha-dev
Data Structures | Functions
hs_intropoint.h File Reference

Header file for hs_intropoint.c. More...

#include "lib/crypt_ops/crypto_curve25519.h"
#include "feature/nodelist/torcert.h"

Go to the source code of this file.

Data Structures

struct  hs_intropoint_t
 

Functions

int hs_intro_received_establish_intro (or_circuit_t *circ, const uint8_t *request, size_t request_len)
 
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_circuit_is_suitable_for_establish_intro (const or_circuit_t *circ)
 
hs_intropoint_ths_intro_new (void)
 
void hs_intropoint_clear (hs_intropoint_t *ip)
 

Detailed Description

Header file for hs_intropoint.c.

Definition in file hs_intropoint.h.

Function Documentation

◆ hs_intro_circuit_is_suitable_for_establish_intro()

int hs_intro_circuit_is_suitable_for_establish_intro ( const or_circuit_t circ)

Return True if circuit is suitable for being service-side intro circuit.

Definition at line 492 of file hs_intropoint.c.

◆ hs_intro_received_establish_intro()

int hs_intro_received_establish_intro ( or_circuit_t circ,
const uint8_t *  request,
size_t  request_len 
)

We just received an ESTABLISH_INTRO cell in circ. Pass it to the appropriate handler.

Definition at line 500 of file hs_intropoint.c.

◆ hs_intro_received_introduce1()

int hs_intro_received_introduce1 ( or_circuit_t circ,
const uint8_t *  request,
size_t  request_len 
)

We just received an INTRODUCE1 cell on circ. Figure out which type it is and pass it to the appropriate handler. Return 0 on success else a negative value and the circuit is closed.

Definition at line 757 of file hs_intropoint.c.

◆ hs_intro_send_intro_established_cell()

int hs_intro_send_intro_established_cell ( or_circuit_t circ)

Send an INTRO_ESTABLISHED cell to circ.

Definition at line 152 of file hs_intropoint.c.

◆ hs_intropoint_clear()

void hs_intropoint_clear ( hs_intropoint_t ip)

Clear memory allocated by the given intropoint object ip (but don't free the object itself).

Definition at line 790 of file hs_intropoint.c.