]> gitweb.fluxo.info Git - firma.git/commitdiff
Allowing characters to be sequentially repeated up to 4 times instead of 3.
authorluis <luis>
Sat, 3 Sep 2005 14:48:10 +0000 (14:48 +0000)
committerluis <luis>
Sat, 3 Sep 2005 14:48:10 +0000 (14:48 +0000)
firma

diff --git a/firma b/firma
index 2ad30a7b5fe71a7a0c533af35a0dc7f8c0ab697a..487188705e2a9201c19e3b7b8f3aa97ba60b1cbd 100755 (executable)
--- 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."