summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/pkcs7/pk7_attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_attr.c b/src/lib/libcrypto/pkcs7/pk7_attr.c
index c35b153b84..bf775735d9 100644
--- a/src/lib/libcrypto/pkcs7/pk7_attr.c
+++ b/src/lib/libcrypto/pkcs7/pk7_attr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pk7_attr.c,v 1.17 2025/07/27 07:11:36 tb Exp $ */ 1/* $OpenBSD: pk7_attr.c,v 1.18 2025/07/28 04:29:00 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2001. 3 * project 2001.
4 */ 4 */
@@ -159,7 +159,7 @@ PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t)
159 goto err; 159 goto err;
160 } 160 }
161 161
162 /* RFC 5652, section 11.3 - UTCTime for times between 1950 and 2050. */ 162 /* RFC 5652, section 11.3 - UTCTime for the years 1950-2049. */
163 if (ASN1_time_parse(tm->data, tm->length, NULL, tm->type) == -1) 163 if (ASN1_time_parse(tm->data, tm->length, NULL, tm->type) == -1)
164 goto err; 164 goto err;
165 if (!PKCS7_add_signed_attribute(si, NID_pkcs9_signingTime, tm->type, tm)) 165 if (!PKCS7_add_signed_attribute(si, NID_pkcs9_signingTime, tm->type, tm))