mirror of
https://github.com/FiloSottile/age.git
synced 2026-09-25 17:34:32 +00:00
+1
-1
@@ -83,7 +83,7 @@ func parseIdentitiesFile(name string) ([]age.Identity, error) {
|
||||
|
||||
func parseSSHIdentity(name string, pemBytes []byte) ([]age.Identity, error) {
|
||||
id, err := age.ParseSSHIdentity(pemBytes)
|
||||
if sshErr, ok := err.(*ssh.PassphraseNeededError); ok {
|
||||
if sshErr, ok := err.(*ssh.PassphraseMissingError); ok {
|
||||
pubKey := sshErr.PublicKey
|
||||
if pubKey == nil {
|
||||
pubKey, err = readPubFile(name)
|
||||
|
||||
Reference in New Issue
Block a user