summaryrefslogtreecommitdiff
path: root/src/core/wee-secure.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-03-12 21:30:01 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-03-12 21:30:01 +0100
commit99e48d7fa3e5a68aa884ab51e7436e876997fdcb (patch)
treeb23f170158c90c04de34a1ca70bdc79c0db05d7d /src/core/wee-secure.h
parentbc6c1f274caffb09f65418f9124005f31de4cee4 (diff)
downloadweechat-99e48d7fa3e5a68aa884ab51e7436e876997fdcb.zip
core: set max length to 4096 for /secure passphrase (closes #1323)
Diffstat (limited to 'src/core/wee-secure.h')
-rw-r--r--src/core/wee-secure.h13
1 files changed, 7 insertions, 6 deletions
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 <time.h>
-#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
{