From 71a046a2d09a139fda4a20e2bc792dd595964b01 Mon Sep 17 00:00:00 2001 From: olszomal Date: Fri, 8 Mar 2024 09:00:24 +0100 Subject: [PATCH] Ignore missing PKCS#9 signing time field (NID_pkcs9_signingTime: 1.2.840.113549.1.9.5) in the CMS_ContentInfo structure. Timestamping time for verification is get from embedded content in this CMS_ContentInfo structure. --- osslsigncode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/osslsigncode.c b/osslsigncode.c index f58d0ec..7d52db3 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -2167,8 +2167,6 @@ static int print_cms_timestamp(CMS_ContentInfo *timestamp, time_t time) /* PKCS#9 signing time - Policy OID: 1.2.840.113549.1.9.5 */ attr = CMS_signed_get_attr(si, CMS_signed_get_attr_by_NID(si, NID_pkcs9_signingTime, -1)); - if (attr == NULL) - return 0; /* FAILED */ printf("\tSigning time: "); print_time_t(time_t_get_asn1_time(X509_ATTRIBUTE_get0_data(attr, 0, V_ASN1_UTCTIME, NULL)));