summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-12-03 09:22:21 -0500
committerDavid Goulet <dgoulet@torproject.org>2019-12-03 09:22:21 -0500
commit65759f29019ed4cd33502fef9b06bb92aa6e348a (patch)
treedc7761b71389d7f18dc85b0df90ae1748130a49c /src/feature/hs/hs_client.h
parentdf6c5382ad0c3da45808bf67cec63f40942b561b (diff)
parent12305b6bb6a68640e011dc5e2f2557bdccc2ae22 (diff)
downloadtor-65759f29019ed4cd33502fef9b06bb92aa6e348a.tar.gz
tor-65759f29019ed4cd33502fef9b06bb92aa6e348a.zip
Merge branch 'tor-github/pr/1563'
Diffstat (limited to 'src/feature/hs/hs_client.h')
-rw-r--r--src/feature/hs/hs_client.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/feature/hs/hs_client.h b/src/feature/hs/hs_client.h
index 23effc06bd..959ba136cd 100644
--- a/src/feature/hs/hs_client.h
+++ b/src/feature/hs/hs_client.h
@@ -45,6 +45,8 @@ typedef enum {
REGISTER_SUCCESS_AND_DECRYPTED,
/* We failed to register these credentials, because of a bad HS address. */
REGISTER_FAIL_BAD_ADDRESS,
+ /* We failed to register these credentials, because of a bad HS address. */
+ REGISTER_FAIL_PERMANENT_STORAGE,
} hs_client_register_auth_status_t;
/* Status code of client auth credential removal */
@@ -60,9 +62,6 @@ typedef enum {
/** Flag to set when a client auth is permanent (saved on disk). */
#define CLIENT_AUTH_FLAG_IS_PERMANENT (1<<0)
-/** Max length of a client auth nickname */
-#define HS_CLIENT_AUTH_MAX_NICKNAME_LENGTH 255
-
/** Client-side configuration of client authorization */
typedef struct hs_client_service_authorization_t {
/** An curve25519 secret key used to compute decryption keys that
@@ -72,9 +71,6 @@ 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 optional nickname for this client */
- char *nickname;
-
/* Optional flags for this client. */
int flags;
} hs_client_service_authorization_t;