summaryrefslogtreecommitdiff
path: root/src/feature/control/control_hs.c
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/control/control_hs.c
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/control/control_hs.c')
-rw-r--r--src/feature/control/control_hs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/control/control_hs.c b/src/feature/control/control_hs.c
index aa7400c0ce..9f9e709c32 100644
--- a/src/feature/control/control_hs.c
+++ b/src/feature/control/control_hs.c
@@ -140,8 +140,10 @@ handle_control_onion_client_auth_add(control_connection_t *conn,
if (BUG(register_status == REGISTER_FAIL_BAD_ADDRESS)) {
/* It's a bug because the service addr has already been validated above */
control_printf_endreply(conn, 512, "Invalid v3 address \"%s\"", hsaddress);
- } else if (register_status == REGISTER_FAIL_ALREADY_EXISTS) {
- control_printf_endreply(conn, 551, "Client already exists");
+ } else if (register_status == REGISTER_SUCCESS_ALREADY_EXISTS) {
+ control_printf_endreply(conn, 251,"Client for onion existed and replaced");
+ } else if (register_status == REGISTER_SUCCESS_ALSO_DECRYPTED) {
+ control_printf_endreply(conn, 252,"Registered client and decrypted desc");
} else if (register_status == REGISTER_SUCCESS) {
control_printf_endreply(conn, 250, "OK");
} else {