summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/CMS_encrypt.3
diff options
context:
space:
mode:
authorschwarze <>2020-06-04 21:21:03 +0000
committerschwarze <>2020-06-04 21:21:03 +0000
commitbe3505dc014b9b7022575b6fe4f9c78c2080281c (patch)
tree2920ef908eabfe843f01bfd04a3aaf4eff0a1cec /src/lib/libcrypto/man/CMS_encrypt.3
parent249e70083469fe402a1366e4a02f52cb145be012 (diff)
downloadopenbsd-be3505dc014b9b7022575b6fe4f9c78c2080281c.tar.gz
openbsd-be3505dc014b9b7022575b6fe4f9c78c2080281c.tar.bz2
openbsd-be3505dc014b9b7022575b6fe4f9c78c2080281c.zip
When X509_ATTRIBUTE_create() receives an invalid NID (e.g., -1), return
failure rather than silently constructing a broken X509_ATTRIBUTE object that might cause NULL pointer accesses later on. This matters because X509_ATTRIBUTE_create() is used by documented API functions like PKCS7_add_attribute(3) and the NID comes straight from the user. This fixes a bug found while working on documentation. OK tb@ and "thanks" bluhm@
Diffstat (limited to 'src/lib/libcrypto/man/CMS_encrypt.3')
0 files changed, 0 insertions, 0 deletions