Skip to content

Commit

Permalink
Rename REGISTER_SUCCESS_ALSO_DECRYPTED to REGISTER_SUCCESS_AND_DECRYP…
Browse files Browse the repository at this point in the history
…TED.
  • Loading branch information
asn-d6 committed Nov 18, 2019
1 parent 97fd751 commit 21b3303
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/feature/control/control_hs.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ handle_control_onion_client_auth_add(control_connection_t *conn,
case REGISTER_SUCCESS_ALREADY_EXISTS:
control_printf_endreply(conn, 251,"Client for onion existed and replaced");
break;
case REGISTER_SUCCESS_ALSO_DECRYPTED:
case REGISTER_SUCCESS_AND_DECRYPTED:
control_printf_endreply(conn, 252,"Registered client and decrypted desc");
break;
case REGISTER_SUCCESS:
Expand Down
2 changes: 1 addition & 1 deletion src/feature/hs/hs_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ hs_client_register_auth_credentials(hs_client_service_authorization_t *creds)
/** Now that we set the new credentials, also try to decrypt any cached
* descriptors. */
if (hs_cache_client_new_auth_parse(&service_identity_pk)) {
retval = REGISTER_SUCCESS_ALSO_DECRYPTED;
retval = REGISTER_SUCCESS_AND_DECRYPTED;
}

return retval;
Expand Down
2 changes: 1 addition & 1 deletion src/feature/hs/hs_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typedef enum {
REGISTER_SUCCESS_ALREADY_EXISTS,
/* We successfuly registered these credentials, and also decrypted a cached
* descriptor. */
REGISTER_SUCCESS_ALSO_DECRYPTED,
REGISTER_SUCCESS_AND_DECRYPTED,
/* We failed to register these credentials, because of a bad HS address. */
REGISTER_FAIL_BAD_ADDRESS,
} hs_client_register_auth_status_t;
Expand Down

0 comments on commit 21b3303

Please sign in to comment.