diff options
| author | tb <> | 2023-11-01 20:37:42 +0000 |
|---|---|---|
| committer | tb <> | 2023-11-01 20:37:42 +0000 |
| commit | 9502a579475daabba44f561af5927b9423bfd082 (patch) | |
| tree | 096fff81e30ca03dd34347beb2f73d664206a18b /src/regress/lib/libc | |
| parent | 718563113a50e94a6425cdd51e05876a3d29a3ba (diff) | |
| download | openbsd-9502a579475daabba44f561af5927b9423bfd082.tar.gz openbsd-9502a579475daabba44f561af5927b9423bfd082.tar.bz2 openbsd-9502a579475daabba44f561af5927b9423bfd082.zip | |
Add X509_ALGOR_set0_by_nid()
X509_ALGOR_set0() is annoyingly unergonomic since it takes an ASN1_OBJECT
rather than a nid. This means that almost all callers call OBJ_obj2nid()
and they often do this inline without error checking so that the resulting
X509_ALGOR object is corrupted and may lead to incorrect encodings.
Provide an internal alternative X509_ALGOR_set0_by_nid() that takes a nid
instead of an ASN1_OBJECT and performs proper error checking. This will be
used to convert callers of X509_ALGOR_set0() in the library.
ok jsing
Diffstat (limited to 'src/regress/lib/libc')
0 files changed, 0 insertions, 0 deletions
