aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Brunschwig <[email protected]>2021-07-18 16:51:34 +0200
committerPatrick Brunschwig <[email protected]>2021-07-18 16:51:34 +0200
commitf768162059d0ca96c98986caefdce5ce7141dc99 (patch)
treeb68bb1431906c7f1946a5fa912bebd96eb29c191
parentdac03f229f8bc7982b2ea3928dbe7128fb0b5a22 (diff)
downloadenigmail-f768162059d0ca96c98986caefdce5ce7141dc99.tar.gz
enigmail-f768162059d0ca96c98986caefdce5ce7141dc99.tar.bz2
enigmail-f768162059d0ca96c98986caefdce5ce7141dc99.zip
keys that don't expire should not be interpreted as expired
-rw-r--r--package/cryptoAPI/pgpjs-keystore.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/cryptoAPI/pgpjs-keystore.jsm b/package/cryptoAPI/pgpjs-keystore.jsm
index f72f48d1..1418710a 100644
--- a/package/cryptoAPI/pgpjs-keystore.jsm
+++ b/package/cryptoAPI/pgpjs-keystore.jsm
@@ -195,7 +195,7 @@ var pgpjs_keyStore = {
}
// special handling for keys that expired after they were stored in DB
- if (key.expiryTime < now) {
+ if (key.expiryTime > 0 && key.expiryTime < now) {
key.keyUseFor = key.keyUseFor.replace(/[CES]/g, "");
if (key.keyTrust.search(/^[fu]/) === 0) {
key.keyTrust = "e";