CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2017/08/13 11:04:36
Modified files: lib/libssl : ssl_lib.c Log message: 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@