Tor  0.4.7.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
 

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.

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 674 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 693 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 609 of file hs_config.c.