mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 15:23:27 +01:00
63b4ea22af
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
53 lines
2.0 KiB
C
53 lines
2.0 KiB
C
/* Copyright (c) 2017-2018, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* \file hs_control.h
|
|
* \brief Header file containing control port event related code.
|
|
**/
|
|
|
|
#ifndef TOR_HS_CONTROL_H
|
|
#define TOR_HS_CONTROL_H
|
|
|
|
#include "or/hs_ident.h"
|
|
|
|
/* Event "HS_DESC REQUESTED [...]" */
|
|
void hs_control_desc_event_requested(const ed25519_public_key_t *onion_pk,
|
|
const char *base64_blinded_pk,
|
|
const routerstatus_t *hsdir_rs);
|
|
|
|
/* Event "HS_DESC FAILED [...]" */
|
|
void hs_control_desc_event_failed(const hs_ident_dir_conn_t *ident,
|
|
const char *hsdir_id_digest,
|
|
const char *reason);
|
|
|
|
/* Event "HS_DESC RECEIVED [...]" */
|
|
void hs_control_desc_event_received(const hs_ident_dir_conn_t *ident,
|
|
const char *hsdir_id_digest);
|
|
|
|
/* Event "HS_DESC CREATED [...]" */
|
|
void hs_control_desc_event_created(const char *onion_address,
|
|
const ed25519_public_key_t *blinded_pk);
|
|
|
|
/* Event "HS_DESC UPLOAD [...]" */
|
|
void hs_control_desc_event_upload(const char *onion_address,
|
|
const char *hsdir_id_digest,
|
|
const ed25519_public_key_t *blinded_pk,
|
|
const uint8_t *hsdir_index);
|
|
|
|
/* Event "HS_DESC UPLOADED [...]" */
|
|
void hs_control_desc_event_uploaded(const hs_ident_dir_conn_t *ident,
|
|
const char *hsdir_id_digest);
|
|
|
|
/* Event "HS_DESC_CONTENT [...]" */
|
|
void hs_control_desc_event_content(const hs_ident_dir_conn_t *ident,
|
|
const char *hsdir_id_digest,
|
|
const char *body);
|
|
|
|
/* Command "HSPOST [...]" */
|
|
int hs_control_hspost_command(const char *body, const char *onion_address,
|
|
const smartlist_t *hsdirs_rs);
|
|
|
|
#endif /* !defined(TOR_HS_CONTROL_H) */
|
|
|