mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-28 00:53:04 +01:00
This patch doesn't actually use the results of the parsed object to create the service configuration: subsequent patches will do that. This patch just introduces the necessary configuration tables and starts using them to validate the configuration. As of this writing, this patch breaks tests. I'll likely fix that in a rebase later on: the current error messages for failures to parse options are a regression, so I've opened #33640 for that.
30 lines
898 B
C
30 lines
898 B
C
/* Copyright (c) 2001 Matej Pfajfar.
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2020, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* @file dirauth_options_st.h
|
|
* @brief Structure hs_opts_t to hold options for a single hidden service.
|
|
**/
|
|
|
|
#ifndef TOR_FEATURE_HS_HS_OPTS_ST_H
|
|
#define TOR_FEATURE_HS_HS_OPTS_ST_H
|
|
|
|
#include "lib/conf/confdecl.h"
|
|
#define CONF_CONTEXT STRUCT
|
|
#include "feature/hs/hs_options.inc"
|
|
#undef CONF_CONTEXT
|
|
|
|
/**
|
|
* An hs_opts_t holds the parsed options for a single HS configuration
|
|
* section.
|
|
*
|
|
* This name ends with 'opts' instead of 'options' to signal that it is not
|
|
* handled directly by the or_options_t configuration manager, but that
|
|
* first we partition the "HiddenService*" options by section.
|
|
**/
|
|
typedef struct hs_opts_t hs_opts_t;
|
|
|
|
#endif
|