Home GnuPG
Diffusion GnuPG 86baca6e62b3

gpgscm: New operator "*long-time-t?" to detect proper time_t systems.

Description

gpgscm: New operator "*long-time-t?" to detect proper time_t systems.

* tests/gpgscm/opdefines.h (OP_LONG_TIME_T): New.
* tests/gpgscm/scheme.c (Eval_Cycle): Implement it.
* tests/openpgp/quick-key-manipulation.scm (last-pgp-date): new.
(last-pgp-date-5min): New.
(last-pgp-seconds): New.
(last-pgp-seconds-5min): New.
("Checking that we can add subkeys..."): Use the new functions instead
of the year 20238 constants.

This is actually a system constant but it is easier to provide it as a
new function to get this value. This makes the tests run properly on
64 bit system when building after 2038.