1 /* Copyright (c) 2020-2021, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
6 * \brief Header file for the specific code for onion balance.
12 #include "feature/hs/hs_service.h"
14 bool hs_ob_service_is_instance(const hs_service_t
*service
);
16 int hs_ob_parse_config_file(hs_service_config_t
*config
);
18 struct hs_subcredential_t
;
20 void hs_ob_free_all(void);
22 void hs_ob_refresh_keys(hs_service_t
*service
);
26 STATIC
size_t compute_subcredentials(const hs_service_t
*service
,
27 struct hs_subcredential_t
**subcredentials
);
29 typedef struct ob_options_t
{
30 /** Magic number to identify the structure in memory. */
32 /** Master Onion Address(es). */
33 struct config_line_t
*MasterOnionAddress
;
34 /** Extra Lines for configuration we might not know. */
35 struct config_line_t
*ExtraLines
;
38 #endif /* defined(HS_OB_PRIVATE) */
40 #endif /* !defined(TOR_HS_OB_H) */