Keys with no expiration date were always considered expired. No more. :)
authorKrista Grothoff <krista@pep-project.org>
Mon, 24 Oct 2016 14:38:05 +0200
changeset 13263d97f4c0ee25
parent 1321 ad3f23b3d0ac
child 1327 0b48955f6d74
child 1329 876ad7615d75
Keys with no expiration date were always considered expired. No more. :)
src/pgp_gpg.c
     1.1 --- a/src/pgp_gpg.c	Thu Oct 20 21:46:43 2016 +0200
     1.2 +++ b/src/pgp_gpg.c	Mon Oct 24 14:38:05 2016 +0200
     1.3 @@ -2012,7 +2012,8 @@
     1.4          bool sgn_available = false;
     1.5          bool enc_available = false;
     1.6          for (_sk = key->subkeys; _sk; _sk = _sk->next) {
     1.7 -            if (_sk->expires > when) // not expired at that date ?
     1.8 +            if (_sk->expires > when || _sk->expires == 0) // not expired at that date ?
     1.9 +                                                          // Also, zero means "does not expire"
    1.10              {
    1.11                  if (_sk->can_certify) crt_available = true;
    1.12                  if (_sk->can_sign) sgn_available = true;