summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_handshake.c
diff options
context:
space:
mode:
authortb <>2024-02-02 10:53:48 +0000
committertb <>2024-02-02 10:53:48 +0000
commit989da4ff25e43b01aa92032006c42983562c68bd (patch)
tree48e93f64d13fc10ec18fbe3edbc5348c1bc257f3 /src/lib/libssl/tls13_handshake.c
parenta9a794ecb695aa4b6c3e89f52825f7772526cb1e (diff)
downloadopenbsd-989da4ff25e43b01aa92032006c42983562c68bd.tar.gz
openbsd-989da4ff25e43b01aa92032006c42983562c68bd.tar.bz2
openbsd-989da4ff25e43b01aa92032006c42983562c68bd.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/tls13_handshake.c')
0 files changed, 0 insertions, 0 deletions