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 --- sm/import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sm/import.c') diff --git a/sm/import.c b/sm/import.c index d506913d0..5a193ef52 100644 --- a/sm/import.c +++ b/sm/import.c @@ -191,7 +191,8 @@ check_and_store (ctrl_t ctrl, struct stats_s *stats, */ rc = gpgsm_basic_cert_check (ctrl, cert); if (!rc && ctrl->with_validation) - rc = gpgsm_validate_chain (ctrl, cert, "", NULL, 0, NULL, 0, NULL); + rc = gpgsm_validate_chain (ctrl, cert, + GNUPG_ISOTIME_NONE, NULL, 0, NULL, 0, NULL); if (!rc || (!ctrl->with_validation && (gpg_err_code (rc) == GPG_ERR_MISSING_CERT || gpg_err_code (rc) == GPG_ERR_MISSING_ISSUER_CERT))) -- cgit v1.2.3