mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Extract or_options_t from or.h
I decided to have this file included from config.h, though, since it is used nearly everywhere.
This commit is contained in:
parent
986d761510
commit
13116378b1
8 changed files with 1084 additions and 1062 deletions
|
@ -39,6 +39,7 @@
|
|||
#include "or/circuitmux_ewma.h"
|
||||
#include "lib/crypt_ops/crypto_rand.h"
|
||||
#include "or/networkstatus.h"
|
||||
#include "or/or_options_st.h"
|
||||
|
||||
/*** EWMA parameter #defines ***/
|
||||
|
||||
|
@ -826,4 +827,3 @@ circuitmux_ewma_free_all(void)
|
|||
{
|
||||
ewma_ticks_initialized = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#ifndef TOR_CONFIG_H
|
||||
#define TOR_CONFIG_H
|
||||
|
||||
#include "or/or_options_st.h"
|
||||
#include "lib/testsupport/testsupport.h"
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(DARWIN)
|
||||
|
|
|
@ -184,6 +184,7 @@ int control_event_signal(uintptr_t signal);
|
|||
|
||||
int init_control_cookie_authentication(int enabled);
|
||||
char *get_controller_cookie_file_name(void);
|
||||
struct config_line_t;
|
||||
smartlist_t *decode_hashed_passwords(struct config_line_t *passwords);
|
||||
void disable_control_logging(void);
|
||||
void enable_control_logging(void);
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "or/hs_service.h"
|
||||
#include "or/rendservice.h"
|
||||
#include "lib/encoding/confline.h"
|
||||
#include "or/or_options_st.h"
|
||||
|
||||
/* Using the given list of services, stage them into our global state. Every
|
||||
* service version are handled. This function can remove entries in the given
|
||||
|
|
1062
src/or/or.h
1062
src/or/or.h
File diff suppressed because it is too large
Load diff
1077
src/or/or_options_st.h
Normal file
1077
src/or/or_options_st.h
Normal file
File diff suppressed because it is too large
Load diff
|
@ -121,6 +121,7 @@ int policies_parse_exit_policy_from_options(
|
|||
uint32_t local_address,
|
||||
const tor_addr_t *ipv6_local_address,
|
||||
smartlist_t **result);
|
||||
struct config_line_t;
|
||||
int policies_parse_exit_policy(struct config_line_t *cfg, smartlist_t **dest,
|
||||
exit_policy_parser_cfg_t options,
|
||||
const smartlist_t *configured_addresses);
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "or/hs_service.h"
|
||||
|
||||
typedef struct rend_intro_cell_t rend_intro_cell_t;
|
||||
struct config_line_t;
|
||||
|
||||
/* This can be used for both INTRODUCE1 and INTRODUCE2 */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue