diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-02-18 03:11:12 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-02-18 03:11:12 +0100 |
commit | 05fdaa1737523fad72b6ffb9e7a90d5344ff64a5 (patch) | |
tree | f6b37102eb790ce992b74b2037805fdc5e0eb361 /common/gettime.h | |
parent | po: Fix gender of pronoun in German translation (diff) | |
download | gnupg2-05fdaa1737523fad72b6ffb9e7a90d5344ff64a5.tar.xz gnupg2-05fdaa1737523fad72b6ffb9e7a90d5344ff64a5.zip |
sm: Fix use of value NONE in gnupg_isotime_t type.
* common/gettime.h (GNUPG_ISOTIME_NONE): New.
* sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it.
* sm/certlist.c (gpgsm_add_to_certlist): Likewise.
* sm/import.c (check_and_store): Likewise.
* sm/keylist.c (list_cert_colon, list_cert_raw): Likewise.
(list_cert_std): Likewise.
* sm/sign.c (gpgsm_sign): Likewise.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common/gettime.h')
-rw-r--r-- | common/gettime.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/gettime.h b/common/gettime.h index 73f188634..4f7199f92 100644 --- a/common/gettime.h +++ b/common/gettime.h @@ -38,6 +38,11 @@ the KSBA type ksba_isotime_t. */ typedef char gnupg_isotime_t[16]; +/* Constant string of 16-byte, which is compatible to the type + gnupg_iso_time_t. */ +#define GNUPG_ISOTIME_NONE \ + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + time_t gnupg_get_time (void); struct tm *gnupg_gmtime (const time_t *timep, struct tm *result); void gnupg_get_isotime (gnupg_isotime_t timebuf); |