aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluis <luis>2005-09-03 14:48:10 +0000
committerluis <luis>2005-09-03 14:48:10 +0000
commit3501212561b0d020af8f008dd07f5f5ac206c229 (patch)
tree875a33307fcd500a49371d7248aac09425087888
parentfe073be5dff0ab6f4008d3da20ee2ce4e1ff7b53 (diff)
downloadfirma-3501212561b0d020af8f008dd07f5f5ac206c229.tar.gz
firma-3501212561b0d020af8f008dd07f5f5ac206c229.tar.bz2
Allowing characters to be sequentially repeated up to 4 times instead of 3.
-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."