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

- Fix #1159: `Key.verifyPrimaryKey` considers expiration time subpackets in direct-key signatures to determine whether the key is expired. - `Key.getExpirationTime()` does not take the `capabilities` and `keyID` arguments anymore, and simply returns the expiration date of the primary key. Also, like for `verifyPrimaryKey`, direct-key signatures are now taken into account. - Keys and signatures are considered expired at the time of expiry, instead of one second later. Breaking change: `Key.getExpirationTime(capabilities, keyID, userID, config)` -> `.getExpirationTime(userID, config)`