diff options
author | tb <> | 2023-05-23 11:51:12 +0000 |
---|---|---|
committer | tb <> | 2023-05-23 11:51:12 +0000 |
commit | 7cab7499f764c06376e465d4c8264bd7315c181c (patch) | |
tree | 2dcedb027d2360722274907d07f67f3d85dbfac2 /src/lib/libssl/s3_lib.c | |
parent | c8f9fca94d4424a155a99b10c99da1dd345761a3 (diff) | |
download | openbsd-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