summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authortb <>2023-05-23 11:51:12 +0000
committertb <>2023-05-23 11:51:12 +0000
commit7cab7499f764c06376e465d4c8264bd7315c181c (patch)
tree2dcedb027d2360722274907d07f67f3d85dbfac2 /src/lib/libssl/s3_lib.c
parentc8f9fca94d4424a155a99b10c99da1dd345761a3 (diff)
downloadopenbsd-7cab7499f764c06376e465d4c8264bd7315c181c.tar.gz
openbsd-7cab7499f764c06376e465d4c8264bd7315c181c.tar.bz2
openbsd-7cab7499f764c06376e465d4c8264bd7315c181c.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/s3_lib.c')
0 files changed, 0 insertions, 0 deletions