summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authorjsing <>2020-08-09 16:02:58 +0000
committerjsing <>2020-08-09 16:02:58 +0000
commite8a20f5bda4b54bf67bf267175b38eb299dfafa9 (patch)
tree1bce0663b79d08c1bf38e62b09a464cbcc5bd6ce /src/lib/libc
parent3445e90a58f62efa57a22b689bcec14a3195a35a (diff)
downloadopenbsd-e8a20f5bda4b54bf67bf267175b38eb299dfafa9.tar.gz
openbsd-e8a20f5bda4b54bf67bf267175b38eb299dfafa9.tar.bz2
openbsd-e8a20f5bda4b54bf67bf267175b38eb299dfafa9.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 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions