summaryrefslogtreecommitdiffstats
path: root/lib/libssl/t1_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-08-09 16:02:58 +0000
committerjsing <jsing@openbsd.org>2020-08-09 16:02:58 +0000
commitd6d3cb6fae7ad0934f46c6318c45d1ef5636690f (patch)
tree632630abee23f5fa3a2e4c3d2fabaae4b77d6619 /lib/libssl/t1_lib.c
parentsync (diff)
downloadwireguard-openbsd-d6d3cb6fae7ad0934f46c6318c45d1ef5636690f.tar.xz
wireguard-openbsd-d6d3cb6fae7ad0934f46c6318c45d1ef5636690f.zip
Use CBB more correctly when writing SSL3/DTLS records.
Previously we used CBB to build the record headers, but not the entire record. Use CBB_init_fixed() upfront, then build the record header and add space for the record content. However, in order to do this we need to determine the length of the record upfront. This simplifies the code, removes a number of manual bounds checks and makes way for further improvements. ok inoguchi@ tb@
Diffstat (limited to 'lib/libssl/t1_lib.c')
0 files changed, 0 insertions, 0 deletions