diff options
author | tb <> | 2025-07-27 07:11:36 +0000 |
---|---|---|
committer | tb <> | 2025-07-27 07:11:36 +0000 |
commit | b2cb32920a6667af40d758ec04123fa98612d608 (patch) | |
tree | f47be480d7bdd6de671c9ccdb1b8da57ba430859 /src/lib/libc/string/wcscspn.c | |
parent | d943e504ca5f07a9282522f6183ff0b704ec8c78 (diff) | |
download | openbsd-b2cb32920a6667af40d758ec04123fa98612d608.tar.gz openbsd-b2cb32920a6667af40d758ec04123fa98612d608.tar.bz2 openbsd-b2cb32920a6667af40d758ec04123fa98612d608.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/string/wcscspn.c')
0 files changed, 0 insertions, 0 deletions