Back this out while we investigate and implement a solution.
Found the hard way by sthen@
-/* $OpenBSD: ssl_asn1.c,v 1.50 2017/04/10 16:47:08 jsing Exp $ */
+/* $OpenBSD: ssl_asn1.c,v 1.51 2017/04/11 13:14:08 jsing Exp $ */
/*
* Copyright (c) 2016 Joel Sing <jsing@openbsd.org>
rv = (int)data_len;
err:
+ if (data != NULL)
+ explicit_bzero(data, data_len);
+
CBB_cleanup(&session);
- freezero(data, data_len);
free(peer_cert_bytes);
+ free(data);
return rv;
}