summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cryptlib.c
diff options
context:
space:
mode:
authortb <>2023-12-14 14:01:42 +0000
committertb <>2023-12-14 14:01:42 +0000
commitab982020bd01ec5679f1cd3c028fec18bf93dbf1 (patch)
treef28cbdb9303b8f8d3bf5dcb9036e955e71fe4366 /src/lib/libcrypto/cryptlib.c
parentcb6863c33257813bf333dc79b37a22d8bc63022b (diff)
downloadopenbsd-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