summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-02-19 18:22:54 +0000
committerjsing <jsing@openbsd.org>2020-02-19 18:22:54 +0000
commitf91e30d73b36e58a6dc7c69ab987b95f834e822f (patch)
tree66b4840ec9c7af718d77c470f8d843b3296bfa76 /sys
parentMake sure the first 2MB page of the kernel is actually mapped RO in the (diff)
downloadwireguard-openbsd-f91e30d73b36e58a6dc7c69ab987b95f834e822f.tar.xz
wireguard-openbsd-f91e30d73b36e58a6dc7c69ab987b95f834e822f.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 'sys')
0 files changed, 0 insertions, 0 deletions