Skip to content

Commit

Permalink
don't need a new error
Browse files Browse the repository at this point in the history
  • Loading branch information
dopey committed Feb 1, 2022
1 parent f1189f2 commit 1853ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pemutil/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func ParseOpenSSHPrivateKey(pemBytes []byte, opts ...Options) (crypto.PrivateKey
if w.KdfName != "none" || w.CipherName != "none" {
password, err := ctx.promptPassword()
if err != nil {
return nil, errors.Errorf("error decoding %s: file is password protected", ctx.filename)
return nil, err
}
key, err = ssh.ParseRawPrivateKeyWithPassphrase(pemBytes, password)
if err != nil {
Expand Down

0 comments on commit 1853ba1

Please sign in to comment.