diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-11-03 12:53:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-11-03 12:53:26 +0000 |
commit | c691147ec19c4cc7e84eee7bfaf0bbd81936058c (patch) | |
tree | 5e9ccb8071fc7339aac6826bc6a33094a99fc631 /regress/lib/libcrypto/x509 | |
parent | 938142c6c32768a3eed407699cac7e679d5e1fdb (diff) |
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 'regress/lib/libcrypto/x509')
0 files changed, 0 insertions, 0 deletions