diff options
author | jsing <> | 2020-02-19 18:22:54 +0000 |
---|---|---|
committer | jsing <> | 2020-02-19 18:22:54 +0000 |
commit | 694792031e2b5887b3d073ebd3dabfa6e7a60fad (patch) | |
tree | c4b2636bacbae90e01b0d5b98ce6d9d3491875ee /src/regress | |
parent | 67f0f449c8bd353252d1a7498100c115256c6979 (diff) | |
download | openbsd-694792031e2b5887b3d073ebd3dabfa6e7a60fad.tar.gz openbsd-694792031e2b5887b3d073ebd3dabfa6e7a60fad.tar.bz2 openbsd-694792031e2b5887b3d073ebd3dabfa6e7a60fad.zip |
Refactor do_ssl3_write().
When empty fragments were added as a countermeasure against chosen
plaintext attacks on CBC, it was done by adding a recursive call to
do_ssl3_write(). This makes the code more complex and difficult to change.
Split the record creation code into a separate ssl3_create_record()
function, which do_ssl3_write() calls. In the case where an empty fragment
is needed, ssl3_create_record() is simply called twice, removing the need
for recursion.
ok inoguchi@ tb@
Diffstat (limited to 'src/regress')
0 files changed, 0 insertions, 0 deletions