Use new KeyExpired function
This commit is contained in:
parent
ea2fcb9438
commit
2091fc106c
3 changed files with 5 additions and 5 deletions
|
|
@ -639,7 +639,7 @@ func FilterExpiredKeys(contactKeys []*KeyRing) (filteredKeys []*KeyRing, err err
|
|||
hasExpired := false
|
||||
hasUnexpired := false
|
||||
for _, subkey := range entity.Subkeys {
|
||||
if subkey.Sig.KeyExpired(now) {
|
||||
if subkey.PublicKey.KeyExpired(subkey.Sig, now) {
|
||||
hasExpired = true
|
||||
} else {
|
||||
hasUnexpired = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue