mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00

When the latest subkey with the requested capabilities is expired, and the primary key has the requested capabilities, return the primary key expiry instead. Also, change isExpired/isDataExpired to still return false at the date returned by getExpirationTime, so that the latter returns the last date that the key can still be used.