diff options
author | tb <> | 2024-02-02 10:53:48 +0000 |
---|---|---|
committer | tb <> | 2024-02-02 10:53:48 +0000 |
commit | ec87760f669d69d0583407d6753cedb89413784b (patch) | |
tree | 48e93f64d13fc10ec18fbe3edbc5348c1bc257f3 /src/lib/libssl/ssl3.h | |
parent | 78e49aaa57993db8c45ccdf8cf753b5c178db092 (diff) | |
download | openbsd-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/ssl3.h')
0 files changed, 0 insertions, 0 deletions