Clean up ssl3_{send,get}_client_kex_gost()
authorjsing <jsing@openbsd.org>
Sun, 9 Jan 2022 15:40:13 +0000 (15:40 +0000)
committerjsing <jsing@openbsd.org>
Sun, 9 Jan 2022 15:40:13 +0000 (15:40 +0000)
commitc3b8e4253326789e021b51cd3a899d53383e2d7d
treef8b542f886a3f717f990820bed74e637544e32ef
parent7caec30cb620cf1191c65be4ed4cc06ff7a70189
Clean up ssl3_{send,get}_client_kex_gost()

Fix leaks, use sizeof() instead of hardcoded sizes, actually check return
codes, explicit_bzero() the premaster secret on the server side and
generally try to kick the GOST kex code into some sort of shape.

ok inoguchi@ tb@
lib/libssl/ssl_clnt.c
lib/libssl/ssl_srvr.c