Home GnuPG
Diffusion GnuPG b07b5144ff6a

gpg: Fix expiration time when Creation-Date is specified.

Description

gpg: Fix expiration time when Creation-Date is specified.

* g10/keygen.c (parse_expire_string_with_ct): New function, optionally
supply the creation time.
(parse_expire_string): Use parse_expire_string_with_ct with no
creation time.
(proc_parameter_file): Use parse_expire_string_with_ct possibly with
the creation time.
  • GnuPG-bug-id: T5252
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details