summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/x509/x509req_ext.c
diff options
context:
space:
mode:
authorschwarze <>2021-11-03 12:53:25 +0000
committerschwarze <>2021-11-03 12:53:25 +0000
commit30d258701107ee34eb8bd32dd67202c5eb4d8d1c (patch)
tree9ed5cc149555082f1d5267d6caee226499c3178b /src/regress/lib/libcrypto/x509/x509req_ext.c
parent3589e145a7a4c05469c4cc91ce8c8395cd999df8 (diff)
downloadopenbsd-30d258701107ee34eb8bd32dd67202c5eb4d8d1c.tar.gz
openbsd-30d258701107ee34eb8bd32dd67202c5eb4d8d1c.tar.bz2
openbsd-30d258701107ee34eb8bd32dd67202c5eb4d8d1c.zip
Fix two bugs in X509_REQ_add_extensions_nid(3)
that i noticed while documneting the function: * missing return value check for ASN1_item_i2d(3) and * missing return value check for OBJ_nid2obj(3). In the function X509_REQ_add_extensions_nid(3), merge everything that is worth merging from the OpenSSL 1.1.1 branch, which is still under a free license; that's mostly parts of the commit 9b0a4531 Mar 14 23:48:47 2015 +0000 (containing the bugfix, even though the OpenSSL commit message did not mention the bugs) and some minor stylistic changes from 0f113f3e and 26a7d938. While here, use i2d_X509_EXTENSIONS(3) instead of the layer-violating call to ASN1_item_i2d(3), and include a few stylistic tweaks from tb@. OK tb@, and jsing@ agreed on the general direction.
Diffstat (limited to 'src/regress/lib/libcrypto/x509/x509req_ext.c')
0 files changed, 0 insertions, 0 deletions