docs/cryptoservice
Miloslav Trmač 57a15112c8 Fix error handling on invalid root passphrase
When the user insists on an invalid passphrase (or aborts the
operation), CryptoService.GetPrivateKey will try the correct root
location first, correctly failing, and then try to look for the root key
in the $gun subdirectory, and so will return the last error, a confusing
”open $path: no such file or directory”.

So, recognize the passphrase-related errors and fail with them directly.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2015-12-09 19:58:02 +01:00
..
certificate.go Working version of Notary and Yubikey 2015-11-12 01:06:09 -08:00
certificate_test.go Fixed cryptoservice.Create to call keyStore.AddKey with a GUN only if 2015-11-12 01:08:57 -08:00
crypto_service.go Fix error handling on invalid root passphrase 2015-12-09 19:58:02 +01:00
crypto_service_test.go Fix error handling on invalid root passphrase 2015-12-09 19:58:02 +01:00
import_export.go private subdir should be added by keyfilestore, rather than all over the place 2015-11-12 01:12:57 -08:00
import_export_test.go private subdir should be added by keyfilestore, rather than all over the place 2015-11-12 01:12:57 -08:00