summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authortb <>2024-02-02 10:53:48 +0000
committertb <>2024-02-02 10:53:48 +0000
commitec87760f669d69d0583407d6753cedb89413784b (patch)
tree48e93f64d13fc10ec18fbe3edbc5348c1bc257f3 /src/lib/libssl/s3_lib.c
parent78e49aaa57993db8c45ccdf8cf753b5c178db092 (diff)
downloadopenbsd-ec87760f669d69d0583407d6753cedb89413784b.tar.gz
openbsd-ec87760f669d69d0583407d6753cedb89413784b.tar.bz2
openbsd-ec87760f669d69d0583407d6753cedb89413784b.zip
Reimplement BIO_dump_indent() with CBS/CBB and BIO_printf()
Instead of heaps of unchecked strlcpy/strlcat/snprintf doing hard to follow gymnastics, use a byte string, a somewhat comprehensible computation of the number of bytes to dump per output line and write using checked BIO_printf() directly to the BIO. Longer strings will still overflow the terminal width of 80 and even longer strings will still overflow the return value (undefined behavior). I don't care much about the former but the latter should be fixed in a later pass. ok beck
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
0 files changed, 0 insertions, 0 deletions