summaryrefslogtreecommitdiff
path: root/src/feature/hs
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-08-05 15:44:18 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:21:41 +0200
commit97fd75169dd7eae2f26c9847fb650aabbddcddda (patch)
treea1477f444eae3877540dddd0d6d8bf65ccd3ab85 /src/feature/hs
parentce422a9d4a6f170b35f54545eface216f87c7089 (diff)
downloadtor-97fd75169dd7eae2f26c9847fb650aabbddcddda.tar.gz
tor-97fd75169dd7eae2f26c9847fb650aabbddcddda.zip
Various minor improvements after David's review.
- Fix a wrong log message - Introduce a cap for the nickname size - Change some 'if' statements to 'switch'.
Diffstat (limited to 'src/feature/hs')
-rw-r--r--src/feature/hs/hs_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/hs/hs_client.h b/src/feature/hs/hs_client.h
index a756408e58..e3aff9949f 100644
--- a/src/feature/hs/hs_client.h
+++ b/src/feature/hs/hs_client.h
@@ -58,6 +58,9 @@ 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