diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-09 12:26:10 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-11-20 11:02:30 -0500 |
commit | 5d180309ea907711a98da82f07a48646699d03b1 (patch) | |
tree | 03e31b822d79d77ec64f2fa8d786248512a7052f /src/or/rendservice.h | |
parent | 49f21b6ba30a07369ff3282615465d0f3ad40e5b (diff) | |
download | tor-5d180309ea907711a98da82f07a48646699d03b1.tar.gz tor-5d180309ea907711a98da82f07a48646699d03b1.zip |
hs: Rename rend_service_add_ephemeral_status_t
Move it to hs_common.h and rename it "hs_service_add_ephemeral_status_t". It
will be shared between v2 and v3 services.
Part of #20699
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/rendservice.h')
-rw-r--r-- | src/or/rendservice.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/or/rendservice.h b/src/or/rendservice.h index 5946e31861..15badce6ab 100644 --- a/src/or/rendservice.h +++ b/src/or/rendservice.h @@ -187,16 +187,7 @@ void rend_service_port_config_free(rend_service_port_config_t *p); void rend_authorized_client_free(rend_authorized_client_t *client); -/** Return value from rend_service_add_ephemeral. */ -typedef enum { - RSAE_BADAUTH = -5, /**< Invalid auth_type/auth_clients */ - RSAE_BADVIRTPORT = -4, /**< Invalid VIRTPORT/TARGET(s) */ - RSAE_ADDREXISTS = -3, /**< Onion address collision */ - RSAE_BADPRIVKEY = -2, /**< Invalid public key */ - RSAE_INTERNAL = -1, /**< Internal error */ - RSAE_OKAY = 0 /**< Service added as expected */ -} rend_service_add_ephemeral_status_t; -rend_service_add_ephemeral_status_t rend_service_add_ephemeral(crypto_pk_t *pk, +hs_service_add_ephemeral_status_t rend_service_add_ephemeral(crypto_pk_t *pk, smartlist_t *ports, int max_streams_per_circuit, int max_streams_close_circuit, |