From 05fdaa1737523fad72b6ffb9e7a90d5344ff64a5 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 18 Feb 2022 11:11:12 +0900 Subject: 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 --- common/gettime.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common') 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); -- cgit v1.2.3