Commit Graph

9 Commits

Author SHA1 Message Date
Tonis Tiigi 59c063b8fe Update passphrase error message
Let the user know why passphrase wasn’t accepted.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2015-08-10 12:44:30 -07:00
Nathan McCauley 20e560db3f Safer, cleaner use of aliasMap
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-31 13:45:43 -07:00
Nathan McCauley bbacddb539 Support aliasMap for pretty printing on PhraseRetrieval. Better keyID printing
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-31 12:32:44 -07:00
Aaron Lehmann 3a1292a287 Avoid printing "Passphrases do not match" when passphrase is too short
Also, wrap the passphrase instructions paragraph at 80 columns, and
change the passphrase variable name in addKey to avoid a conflict with
the package name.

Fixes #146

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-28 14:41:27 -07:00
Derek McGowan 71aaf5c84d Add passphrase function with file input
Updates the prompt receiver to take in the in and out files from arguments.
The default function uses stdin and stdout.
Fixed a typo in comment from "directiory" to "directory".

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-07-23 13:43:02 -07:00
Nathan McCauley 8fe2f4193e Abridge key ids on print, warn about key generation
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-22 18:39:46 -07:00
Nathan McCauley a8b61c2f2b Root key generation warning, incorrect passphrase notification
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-20 20:06:11 -07:00
Nathan McCauley 079f565f5b use consts for tuf alias comparisons
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-20 18:23:02 -07:00
Derek McGowan c35c1ea254 Move passphrase logic to its own package
The logic to retrieve passphrase is generic and may be used by directly by clients.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-07-20 13:02:05 -07:00