mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-08 04:55:12 +00:00
cmd/age: fix support for password-protected ssh-ed25519 keys
This commit is contained in:
@@ -81,7 +81,7 @@ func (i *EncryptedSSHIdentity) Matches(block *format.Recipient) error {
|
||||
if block.Type != i.Type() {
|
||||
return age.ErrIncorrectIdentity
|
||||
}
|
||||
if len(block.Args) != 1 {
|
||||
if len(block.Args) < 1 {
|
||||
return fmt.Errorf("invalid %v recipient block", i.Type())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user