diff options
author | tb <> | 2023-11-01 20:37:42 +0000 |
---|---|---|
committer | tb <> | 2023-11-01 20:37:42 +0000 |
commit | 364f22e5455745dad2aad23f0d3abc0c7461edda (patch) | |
tree | 096fff81e30ca03dd34347beb2f73d664206a18b /src/lib/libc | |
parent | de1587b78c4c5e44d3bf66cd6d9ceb8512074016 (diff) | |
download | openbsd-364f22e5455745dad2aad23f0d3abc0c7461edda.tar.gz openbsd-364f22e5455745dad2aad23f0d3abc0c7461edda.tar.bz2 openbsd-364f22e5455745dad2aad23f0d3abc0c7461edda.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/lib/libc')
0 files changed, 0 insertions, 0 deletions