From 97fd75169dd7eae2f26c9847fb650aabbddcddda Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Mon, 5 Aug 2019 15:44:18 +0300 Subject: 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'. --- src/feature/hs/hs_client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/feature/hs') 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 -- cgit v1.2.3-54-g00ecf