aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2020-08-06 22:32:30 -0700
committerGeorge Kadianakis <desnacked@riseup.net>2020-08-20 14:34:21 +0300
commit6e37086f85aa3e421ebc6f4d64de1cd82bcdeaa6 (patch)
treeb25c1eac5189bedcf695c649e31d1f17a3cb2085 /src/feature/hs
parentb1b007967599ccac2de91aa36d3a11a9bcb4ffdb (diff)
downloadtor-6e37086f85aa3e421ebc6f4d64de1cd82bcdeaa6.tar.gz
tor-6e37086f85aa3e421ebc6f4d64de1cd82bcdeaa6.zip
v3 control: Persist ONION_CLIENT_AUTH_ADD client name
Diffstat (limited to 'src/feature/hs')
-rw-r--r--src/feature/hs/hs_client.c2
-rw-r--r--src/feature/hs/hs_client.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index d9c5d8ca1d..fc1fd76efc 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -2168,6 +2168,8 @@ client_service_authorization_free_(hs_client_service_authorization_t *auth)
return;
}
+ tor_free(auth->client_name);
+
memwipe(auth, 0, sizeof(*auth));
tor_free(auth);
}
diff --git a/src/feature/hs/hs_client.h b/src/feature/hs/hs_client.h
index a11caa309f..88dede8126 100644
--- a/src/feature/hs/hs_client.h
+++ b/src/feature/hs/hs_client.h
@@ -71,6 +71,9 @@ typedef struct hs_client_service_authorization_t {
/** An onion address that is used to connect to the onion service. */
char onion_address[HS_SERVICE_ADDR_LEN_BASE32+1];
+ /** An client name used to connect to the onion service. */
+ char *client_name;
+
/* Optional flags for this client. */
int flags;
} hs_client_service_authorization_t;