mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-27 07:59:35 +01:00
This commit adds the support in the HS subsystem for loading a service from a set of or_options_t and put them in a staging list. To achieve this, service accessors have been created and a global hash map containing service object indexed by master public key. However, this is not used for now. It's ground work for registration process. Signed-off-by: David Goulet <dgoulet@torproject.org>
24 lines
582 B
C
24 lines
582 B
C
/* Copyright (c) 2016, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* \file hs_config.h
|
|
* \brief Header file containing configuration ABI/API for the HS subsytem.
|
|
**/
|
|
|
|
#ifndef TOR_HS_CONFIG_H
|
|
#define TOR_HS_CONFIG_H
|
|
|
|
#include "or.h"
|
|
|
|
/* Max value for HiddenServiceMaxStreams */
|
|
#define HS_CONFIG_MAX_STREAMS_PER_RDV_CIRCUIT 65535
|
|
/* Maximum number of intro points per version 3 services. */
|
|
#define HS_CONFIG_V3_MAX_INTRO_POINTS 20
|
|
|
|
/* API */
|
|
|
|
int hs_config_service_all(const or_options_t *options, int validate_only);
|
|
|
|
#endif /* TOR_HS_CONFIG_H */
|
|
|