diff options
author | tb <> | 2023-12-14 14:01:42 +0000 |
---|---|---|
committer | tb <> | 2023-12-14 14:01:42 +0000 |
commit | ab982020bd01ec5679f1cd3c028fec18bf93dbf1 (patch) | |
tree | f28cbdb9303b8f8d3bf5dcb9036e955e71fe4366 /src/lib/libcrypto/cryptlib.c | |
parent | cb6863c33257813bf333dc79b37a22d8bc63022b (diff) | |
download | openbsd-ab982020bd01ec5679f1cd3c028fec18bf93dbf1.tar.gz openbsd-ab982020bd01ec5679f1cd3c028fec18bf93dbf1.tar.bz2 openbsd-ab982020bd01ec5679f1cd3c028fec18bf93dbf1.zip |
Simplify OBJ_nid2ln()
If nid is in the range of built-in NIDs, return the corresponding
long name, unless some genius left a hole. Otherwise perform a yolo
check if there are any user-added objects with matching nid in the
global hash.
This changes behavior in that we now push an OBJ_R_UNKNOWN_NID error
onto the stack even if there are no user-added objects.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
0 files changed, 0 insertions, 0 deletions