mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-29 17:28:54 +00:00
Merge pull request #1646 from UndeadDevel/better_PIN_question_default
Address inconsistency between docs and OEM factory reset User GPG PIN minimum length requirement
This commit is contained in:
commit
d8a6502d69
@ -994,7 +994,7 @@ if [ "$use_defaults" == "n" -o "$use_defaults" == "N" ]; then
|
|||||||
echo
|
echo
|
||||||
if [ "$prompt_output" == "y" \
|
if [ "$prompt_output" == "y" \
|
||||||
-o "$prompt_output" == "Y" ]; then
|
-o "$prompt_output" == "Y" ]; then
|
||||||
echo -e "\nThey must be each at least 8 characters in length.\n"
|
echo -e "\nThe TPM Owner Password and Admin PIN must be at least 8, the User PIN at least 6 characters in length.\n"
|
||||||
echo
|
echo
|
||||||
if [ "$CONFIG_TPM" = "y" ]; then
|
if [ "$CONFIG_TPM" = "y" ]; then
|
||||||
while [[ ${#TPM_PASS} -lt 8 ]]; do
|
while [[ ${#TPM_PASS} -lt 8 ]]; do
|
||||||
@ -1011,8 +1011,8 @@ if [ "$use_defaults" == "n" -o "$use_defaults" == "N" ]; then
|
|||||||
# That is, if keys were NOT generated in memory (on smartcard only) or
|
# That is, if keys were NOT generated in memory (on smartcard only) or
|
||||||
# if keys were generated in memory but are to be moved from local keyring to smartcard
|
# if keys were generated in memory but are to be moved from local keyring to smartcard
|
||||||
if [ "$GPG_GEN_KEY_IN_MEMORY" = "n" -o "$GPG_GEN_KEY_IN_MEMORY_COPY_TO_SMARTCARD" = "y" ]; then
|
if [ "$GPG_GEN_KEY_IN_MEMORY" = "n" -o "$GPG_GEN_KEY_IN_MEMORY_COPY_TO_SMARTCARD" = "y" ]; then
|
||||||
while [[ ${#USER_PIN} -lt 8 ]] || [[ ${#USER_PIN} -gt $MAX_HOTP_GPG_PIN_LENGTH ]]; do
|
while [[ ${#USER_PIN} -lt 6 ]] || [[ ${#USER_PIN} -gt $MAX_HOTP_GPG_PIN_LENGTH ]]; do
|
||||||
echo -e -n "\nThis PIN should be between 8 to $MAX_HOTP_GPG_PIN_LENGTH characters in length.\n"
|
echo -e -n "\nThis PIN should be between 6 to $MAX_HOTP_GPG_PIN_LENGTH characters in length.\n"
|
||||||
echo -e -n "Enter desired GPG User PIN: "
|
echo -e -n "Enter desired GPG User PIN: "
|
||||||
read USER_PIN
|
read USER_PIN
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user