diff options
author | jsing <> | 2020-08-09 16:02:58 +0000 |
---|---|---|
committer | jsing <> | 2020-08-09 16:02:58 +0000 |
commit | b3dbcda2404dbe31481fae8d6817cbc0a3362031 (patch) | |
tree | 1bce0663b79d08c1bf38e62b09a464cbcc5bd6ce /src/regress/lib/libssl/client/clienttest.c | |
parent | e770512d626b103f809dfdecb1ba758a92b5f57b (diff) | |
download | openbsd-b3dbcda2404dbe31481fae8d6817cbc0a3362031.tar.gz openbsd-b3dbcda2404dbe31481fae8d6817cbc0a3362031.tar.bz2 openbsd-b3dbcda2404dbe31481fae8d6817cbc0a3362031.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/regress/lib/libssl/client/clienttest.c')
0 files changed, 0 insertions, 0 deletions