fork-openpgpjs/src/key
larabr 619d02d78c
Drop capabilities, keyID args in Key.getExpirationTime() and consider direct-key sigs (#1319)
- 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)`
2021-06-15 19:16:52 +02:00
..
factory.js Uniform casing of subkey(s): rename Key.subKeys to Key.subkeys (#1310) 2021-06-10 11:25:43 +02:00
helper.js Drop capabilities, keyID args in Key.getExpirationTime() and consider direct-key sigs (#1319) 2021-06-15 19:16:52 +02:00
index.js Replace Key with PrivateKey and PublicKey classes (#1300) 2021-05-25 19:18:47 +02:00
key.js Drop capabilities, keyID args in Key.getExpirationTime() and consider direct-key sigs (#1319) 2021-06-15 19:16:52 +02:00
private_key.js Uniform casing of subkey(s): rename Key.subKeys to Key.subkeys (#1310) 2021-06-10 11:25:43 +02:00
public_key.js Uniform casing of subkey(s): rename Key.subKeys to Key.subkeys (#1310) 2021-06-10 11:25:43 +02:00
subkey.js Remove primaryKey argument from User methods, rename User.sign to User.certify (#1329) 2021-06-15 17:42:00 +02:00
user.js Remove primaryKey argument from User methods, rename User.sign to User.certify (#1329) 2021-06-15 17:42:00 +02:00