Skip to content

Commit

Permalink
cmd/age: fix support for password-protected ssh-ed25519 keys
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile committed Nov 28, 2019
1 parent 03f7237 commit 025d8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/age/encrypted_keys.go
Expand Up @@ -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())
}

Expand Down

0 comments on commit 025d8d5

Please sign in to comment.