Commit 21b33036 authored by George Kadianakis's avatar George Kadianakis
Browse files

Rename REGISTER_SUCCESS_ALSO_DECRYPTED to REGISTER_SUCCESS_AND_DECRYPTED.

parent 97fd7516
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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:
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;