summaryrefslogtreecommitdiff
path: root/src/or/rendservice.h
diff options
context:
space:
mode:
authorJohn Brooks <john.brooks@dereferenced.net>2015-04-13 21:09:09 -0600
committerNick Mathewson <nickm@torproject.org>2016-05-09 14:28:08 -0400
commitd15354c73b08342f9c1d22917c80194380c75e2c (patch)
tree024ffe2b6ba07399a3867ef6b66eae42cb8e6813 /src/or/rendservice.h
parentd5a23ce115bf89046cc0e9deb64b288113c8dd92 (diff)
downloadtor-d15354c73b08342f9c1d22917c80194380c75e2c.tar.gz
tor-d15354c73b08342f9c1d22917c80194380c75e2c.zip
Add client auth to rend_service_add_ephemeral
Diffstat (limited to 'src/or/rendservice.h')
-rw-r--r--src/or/rendservice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendservice.h b/src/or/rendservice.h
index 2bb0c6aa88..493baa8f98 100644
--- a/src/or/rendservice.h
+++ b/src/or/rendservice.h
@@ -110,6 +110,7 @@ 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 */
@@ -120,6 +121,8 @@ rend_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,
+ rend_auth_type_t auth_type,
+ smartlist_t *auth_clients,
char **service_id_out);
int rend_service_del_ephemeral(const char *service_id);