Home GnuPG
Diffusion GnuPG 5da8fe1c402d

gpg: Allow expiration time after 2013-01-19 on 32 bit Windows.

Description

gpg: Allow expiration time after 2013-01-19 on 32 bit Windows.

* g10/keygen.c (parse_expire_string): Use isotime2epoch_u64.
(parse_creation_string): Ditto.

Details

Provenance
wernerAuthored on Oct 26 2023, 12:01 PM
Parents
rGbb70089d5757: common: New functions timegm_u64, isotime2epoch_u64.
Branches
Unknown
Tags
Unknown
Tasks
T6736: Year 2038 issue for key validity date

Event Timeline

ikloecker added inline comments.
/g10/keygen.c
2701–2702

Doesn't this convert past ISO dates (e.g. yesterday's date) to (u32)(-1) - 1? Shouldn't expiration dates in the past be rejected instead?