summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-06-03 16:18:32 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:21:34 +0200
commitce422a9d4a6f170b35f54545eface216f87c7089 (patch)
tree06954d88b9bce089526468bac7a050ee56f77b6f /src/feature/hs/hs_client.h
parent53ac9a9a91a8f2ab45c75550456716074911e685 (diff)
downloadtor-ce422a9d4a6f170b35f54545eface216f87c7089.tar.gz
tor-ce422a9d4a6f170b35f54545eface216f87c7089.zip
hs-v3: Decrypt pending descriptors when we get new client auth creds.
Diffstat (limited to 'src/feature/hs/hs_client.h')
-rw-r--r--src/feature/hs/hs_client.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/feature/hs/hs_client.h b/src/feature/hs/hs_client.h
index b0122aa14d..a756408e58 100644
--- a/src/feature/hs/hs_client.h
+++ b/src/feature/hs/hs_client.h
@@ -35,8 +35,12 @@ typedef enum {
typedef enum {
/* We successfuly registered these credentials */
REGISTER_SUCCESS,
- /* We failed to register these credentials, because they already exist. */
- REGISTER_FAIL_ALREADY_EXISTS,
+ /* We successfully registered these credentials, but had to replace some
+ * existing ones. */
+ REGISTER_SUCCESS_ALREADY_EXISTS,
+ /* We successfuly registered these credentials, and also decrypted a cached
+ * descriptor. */
+ REGISTER_SUCCESS_ALSO_DECRYPTED,
/* We failed to register these credentials, because of a bad HS address. */
REGISTER_FAIL_BAD_ADDRESS,
} hs_client_register_auth_status_t;