mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Re-add comment about disabling password confirmation in repository_tool.py.
This commit is contained in:
parent
e0b5412eb0
commit
ee2ff3e415
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue