diff options
author | tb <> | 2025-07-27 07:11:36 +0000 |
---|---|---|
committer | tb <> | 2025-07-27 07:11:36 +0000 |
commit | 33683d7f8034ad6ba3e6e873d6e5d5801cebba29 (patch) | |
tree | f47be480d7bdd6de671c9ccdb1b8da57ba430859 /src/lib/libc/stdlib/lsearch.c | |
parent | 5d593caa4397fa2eafb4771d98476f5a53cecd1a (diff) | |
download | openbsd-33683d7f8034ad6ba3e6e873d6e5d5801cebba29.tar.gz openbsd-33683d7f8034ad6ba3e6e873d6e5d5801cebba29.tar.bz2 openbsd-33683d7f8034ad6ba3e6e873d6e5d5801cebba29.zip |
Fix PKCS7_add0_attrib_signing_time()
If the caller passes in NULL, helpfully a new ASN1_TIME is allocated
with X509_gmtime_adj() and leaked if PKCS7_add0_attrib_signing_time()
fails afterward. Fix this. Also don't blindly set the signing time to
a UTCTime. Validate the usual RFC 5280 format before setting it, as
that's what RFC 5652, section 11.3 mandates.
ok kenjiro
Diffstat (limited to 'src/lib/libc/stdlib/lsearch.c')
0 files changed, 0 insertions, 0 deletions