summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/rc4/rc4_enc.c
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2017-08-13 17:04:36 +0000
committerdoug <doug@openbsd.org>2017-08-13 17:04:36 +0000
commitbd8c833e549d5a8a78001885cce5a570a24dff29 (patch)
treeee81e212e4784aba312023068d5f86c9353c2a5e /lib/libcrypto/rc4/rc4_enc.c
parentto change a state's state (that term is overloaded in pf, protocol state (diff)
downloadwireguard-openbsd-bd8c833e549d5a8a78001885cce5a570a24dff29.tar.xz
wireguard-openbsd-bd8c833e549d5a8a78001885cce5a570a24dff29.zip
Make SSL{,_CTX}_set_alpn_protos() do atomic updates and handle NULL.
Previously, the code would accept NULL and 0 length and try to malloc/memcpy it. On OpenBSD, malloc(0) does not return NULL. It could also fail in malloc and leave the old length. Also, add a note that this public API has backwards semantics of what you would expect where 0 is success and 1 is failure. input + ok jsing@ beck@
Diffstat (limited to 'lib/libcrypto/rc4/rc4_enc.c')
0 files changed, 0 insertions, 0 deletions