summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_cert.c
diff options
context:
space:
mode:
authortb <>2023-05-23 11:51:12 +0000
committertb <>2023-05-23 11:51:12 +0000
commit6825aba8c0202893f32509537fbfa606a2459325 (patch)
tree2dcedb027d2360722274907d07f67f3d85dbfac2 /src/lib/libssl/ssl_cert.c
parentbdde2af02514a12044135087400ae31ed4bede39 (diff)
downloadopenbsd-6825aba8c0202893f32509537fbfa606a2459325.tar.gz
openbsd-6825aba8c0202893f32509537fbfa606a2459325.tar.bz2
openbsd-6825aba8c0202893f32509537fbfa606a2459325.zip
Simplify OBJ_obj2txt()
Instead of adding a NUL termination to OBJ_obj2txt(), move the aobj == NULL or aobj->data == NULL checks to i2t_ASN1_OBJECT_internal(). The only other caller, i2t_ASN1_OBJECT(), fails on aobj == NULL and aobj->length == 0, and the latter condition is implied by aobj->data. Cleaner solution for obj_dat.c r1.52 suggested by/ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_cert.c')
0 files changed, 0 insertions, 0 deletions