From 99e48d7fa3e5a68aa884ab51e7436e876997fdcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 12 Mar 2019 21:30:01 +0100 Subject: core: set max length to 4096 for /secure passphrase (closes #1323) --- src/core/wee-secure.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/core/wee-secure.h') diff --git a/src/core/wee-secure.h b/src/core/wee-secure.h index e0a884d56..4b8b047d1 100644 --- a/src/core/wee-secure.h +++ b/src/core/wee-secure.h @@ -22,12 +22,13 @@ #include -#define SECURE_ENV_PASSPHRASE "WEECHAT_PASSPHRASE" -#define SECURE_SALT_DEFAULT "WeeChat!" -#define SECURE_DATA_PASSPHRASE_FLAG "__passphrase__" -#define SECURE_SALT_SIZE 8 -#define SECURE_TOTP_MIN_DIGITS 4 -#define SECURE_TOTP_MAX_DIGITS 10 +#define SECURE_ENV_PASSPHRASE "WEECHAT_PASSPHRASE" +#define SECURE_PASSPHRASE_MAX_LENGTH 4096 +#define SECURE_SALT_DEFAULT "WeeChat!" +#define SECURE_DATA_PASSPHRASE_FLAG "__passphrase__" +#define SECURE_SALT_SIZE 8 +#define SECURE_TOTP_MIN_DIGITS 4 +#define SECURE_TOTP_MAX_DIGITS 10 enum t_secure_config_hash_algo { -- cgit v1.2.3