tor  master
Enumerations | Functions
hs_client.h File Reference

Header file containing client data for the HS subsytem. More...

#include "crypto_ed25519.h"
#include "hs_descriptor.h"
#include "hs_ident.h"
Include dependency graph for hs_client.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  hs_client_fetch_status_t {
  HS_CLIENT_FETCH_ERROR = -1, HS_CLIENT_FETCH_LAUNCHED = 0, HS_CLIENT_FETCH_HAVE_DESC = 1, HS_CLIENT_FETCH_NO_HSDIRS = 2,
  HS_CLIENT_FETCH_NOT_ALLOWED = 3, HS_CLIENT_FETCH_MISSING_INFO = 4, HS_CLIENT_FETCH_PENDING = 5
}
 

Functions

void hs_client_note_connection_attempt_succeeded (const edge_connection_t *conn)
 
int hs_client_decode_descriptor (const char *desc_str, const ed25519_public_key_t *service_identity_pk, hs_descriptor_t **desc)
 
int hs_client_any_intro_points_usable (const ed25519_public_key_t *service_pk, const hs_descriptor_t *desc)
 
int hs_client_refetch_hsdesc (const ed25519_public_key_t *identity_pk)
 
void hs_client_dir_info_changed (void)
 
int hs_client_send_introduce1 (origin_circuit_t *intro_circ, origin_circuit_t *rend_circ)
 
void hs_client_circuit_has_opened (origin_circuit_t *circ)
 
int hs_client_receive_rendezvous_acked (origin_circuit_t *circ, const uint8_t *payload, size_t payload_len)
 
int hs_client_receive_introduce_ack (origin_circuit_t *circ, const uint8_t *payload, size_t payload_len)
 
int hs_client_receive_rendezvous2 (origin_circuit_t *circ, const uint8_t *payload, size_t payload_len)
 
void hs_client_desc_has_arrived (const hs_ident_dir_conn_t *ident)
 
extend_info_ths_client_get_random_intro_from_edge (const edge_connection_t *edge_conn)
 
int hs_client_reextend_intro_circuit (origin_circuit_t *circ)
 
void hs_client_purge_state (void)
 
void hs_client_free_all (void)
 

Detailed Description

Header file containing client data for the HS subsytem.

Function Documentation

◆ hs_client_note_connection_attempt_succeeded()

void hs_client_note_connection_attempt_succeeded ( const edge_connection_t conn)

A circuit just finished connecting to a hidden service that the stream conn has been waiting for. Let the HS subsystem know about this.

Here is the call graph for this function:

◆ hs_client_refetch_hsdesc()

int hs_client_refetch_hsdesc ( const ed25519_public_key_t identity_pk)

Launch a connection to a hidden service directory to fetch a hidden service descriptor using identity_pk to get the necessary keys.

A hs_client_fetch_status_t code is returned.