aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfirma6
1 files changed, 3 insertions, 3 deletions
diff --git a/firma b/firma
index 2ad30a7..4871887 100755
--- a/firma
+++ b/firma
@@ -51,7 +51,7 @@
# contain any additional single quote as part of itself. It has to be at least
# 25 characters long, combining numbers, upper and lower case letters and at
# least 5 special characters. Also, no character can be sequentially repeated
-# more than 3 times.
+# more than 4 times.
#
FIRMA_CONFIG_FILE="/usr/local/etc/firma.conf"
@@ -165,13 +165,13 @@ function CheckListConfigFile {
-z "$(echo -n "$PASSPHRASE" | tr -dc '[[:upper:]]')" || \
-z "$(echo -n "$PASSPHRASE" | tr -dc '[[:digit:]]')" || \
"$(echo -n "$PASSPHRASE" | tr -dc '[:punct:]' | wc -c)" -lt "5" || \
- "$(echo -n "$PASSPHRASE" | fold -w1 | uniq -cd | grep -v '^ \{6\}[23] ')" ]]; then
+ "$(echo -n "$PASSPHRASE" | fold -w1 | uniq -cd | grep -v '^ \{6\}[234] ')" ]]; then
echo "$LIST_NAME: PASSPHRASE is empty or does not meet the minimum complexity requirements."
echo "$LIST_NAME: Please set a new passphrase for the list's private key. Make it at least"
echo "$LIST_NAME: 25 characters long (using a combination of numbers, upper and lower case"
echo "$LIST_NAME: letters and at least 5 special characters) and enclose it in 'single"
echo "$LIST_NAME: quotes'. The passphrase itself, though, cannot contain any single quote."
- echo "$LIST_NAME: Also, no character should be sequentially repeated more than 3 times."
+ echo "$LIST_NAME: Also, no character should be sequentially repeated more than 4 times."
exit 1
elif [[ -z "$($GPG_LIST_KEYS --fixed-list-mode 2> /dev/null | grep ^uid | cut -d : -f 10 | grep -i "<$LIST_ADDRESS>$")" ]]; then
echo "$LIST_NAME: Public key for list \"$(echo -ne "$LIST_ADDRESS" | tr '[:upper:]' '[:lower:]')\" could not be found."