Home GnuPG
Diffusion GnuPG 2258bcded654

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.

Cherry-pick from master commit of:
b07b5144ff6a9208ea27fe1e1518270bd22b382c

  • GnuPG-bug-id: T5252
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 12 2023, 6:34 AM
Parents
rGc68b70ce9d63: w32: Add keyboxd.exe to signed files
Branches
Unknown
Tags
Unknown
Tasks
T5252: bad expiration value when using --batch Creation-Date/Expire-Date