summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2020-02-19 18:22:55 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2020-02-19 18:22:55 +0000
commit8669a9c6cc412d42c178816ef2cd4dde75b282d3 (patch)
tree5fc4d8ea3c3ef2121c86d74f94582a80065c6f64 /libexec
parenta12e4d3f53a5ebead43b66e7ced661ad9360b96f (diff)
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 'libexec')
0 files changed, 0 insertions, 0 deletions