Re-add comment about disabling password confirmation in repository_tool.py.

This commit is contained in:
Vladimir Diaz 2014-04-01 09:04:14 -04:00
parent e0b5412eb0
commit ee2ff3e415

View file

@ -3384,6 +3384,8 @@ def import_rsa_privatekey_from_file(filepath, password=None):
tuf.formats.PATH_SCHEMA.check_match(filepath)
# If the caller does not provide a password argument, prompt for one.
# Password confirmation disabled here, which should ideally happen only
# when creating encrypted key files (i.e., improve usability).
if password is None:
message = 'Enter a password for the encrypted RSA file: '
password = _get_password(message, confirm=False)
@ -3640,6 +3642,8 @@ def import_ed25519_privatekey_from_file(filepath, password=None):
tuf.formats.PATH_SCHEMA.check_match(filepath)
# If the caller does not provide a password argument, prompt for one.
# Password confirmation disabled here, which should ideally happen only
# when creating encrypted key files (i.e., improve usability).
if password is None:
message = 'Enter a password for the encrypted ED25519 key: '
password = _get_password(message, confirm=False)