mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-12 17:16:41 +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.