Tor 0.4.9.0-alpha-dev
Macros | Functions
hs_config.h File Reference

Header file containing configuration ABI/API for the HS subsystem. More...

#include "core/or/or.h"

Go to the source code of this file.

Macros

#define HS_CONFIG_MAX_STREAMS_PER_RDV_CIRCUIT   65535
 
#define HS_CONFIG_V3_MAX_INTRO_POINTS   20
 
#define HS_CONFIG_V3_DOS_DEFENSE_DEFAULT   0
 
#define HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_DEFAULT   25
 
#define HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MIN   0
 
#define HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MAX   INT32_MAX
 
#define HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_DEFAULT   200
 
#define HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MIN   0
 
#define HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MAX   INT32_MAX
 
#define HS_CONFIG_V3_POW_DEFENSES_DEFAULT   0
 

Functions

int hs_config_service_all (const or_options_t *options, int validate_only)
 
int hs_config_client_auth_all (const or_options_t *options, int validate_only)
 
void hs_config_free_all (void)
 

Detailed Description

Header file containing configuration ABI/API for the HS subsystem.

Definition in file hs_config.h.

Macro Definition Documentation

◆ HS_CONFIG_MAX_STREAMS_PER_RDV_CIRCUIT

#define HS_CONFIG_MAX_STREAMS_PER_RDV_CIRCUIT   65535

Definition at line 15 of file hs_config.h.

◆ HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_DEFAULT

#define HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_DEFAULT   200

Definition at line 24 of file hs_config.h.

◆ HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MAX

#define HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MAX   INT32_MAX

Definition at line 26 of file hs_config.h.

◆ HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MIN

#define HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MIN   0

Definition at line 25 of file hs_config.h.

◆ HS_CONFIG_V3_DOS_DEFENSE_DEFAULT

#define HS_CONFIG_V3_DOS_DEFENSE_DEFAULT   0

Definition at line 20 of file hs_config.h.

◆ HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_DEFAULT

#define HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_DEFAULT   25

Definition at line 21 of file hs_config.h.

◆ HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MAX

#define HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MAX   INT32_MAX

Definition at line 23 of file hs_config.h.

◆ HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MIN

#define HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MIN   0

Definition at line 22 of file hs_config.h.

◆ HS_CONFIG_V3_MAX_INTRO_POINTS

#define HS_CONFIG_V3_MAX_INTRO_POINTS   20

Definition at line 17 of file hs_config.h.

◆ HS_CONFIG_V3_POW_DEFENSES_DEFAULT

#define HS_CONFIG_V3_POW_DEFENSES_DEFAULT   0

Definition at line 29 of file hs_config.h.

Function Documentation

◆ hs_config_client_auth_all()

int hs_config_client_auth_all ( const or_options_t options,
int  validate_only 
)

From a set of options, setup every client authorization found. Return 0 on success or -1 on failure. If validate_only is set, parse, warn and return as normal, but don't actually change the configured state.

Definition at line 710 of file hs_config.c.

◆ hs_config_free_all()

void hs_config_free_all ( void  )

Free all resources held by the hs_config.c module.

Definition at line 729 of file hs_config.c.

Referenced by hs_service_free_all().

◆ hs_config_service_all()

int hs_config_service_all ( const or_options_t options,
int  validate_only 
)

From a set of options, setup every hidden service found. Return 0 on success or -1 on failure. If validate_only is set, parse, warn and return as normal, but don't actually change the configured services.

Definition at line 644 of file hs_config.c.