Move private key setup to a helper function with proper error
authoreric <eric@openbsd.org>
Tue, 26 Jan 2021 12:51:22 +0000 (12:51 +0000)
committereric <eric@openbsd.org>
Tue, 26 Jan 2021 12:51:22 +0000 (12:51 +0000)
commitf8e1ec60098a5fd46417b8f8a31adf6799684b8d
treeb632cabee64cd514e0c4358c7b57f19015cc7de0
parenteb788fed2c25e2cc9e10eeb69cd6a369e87233e3
Move private key setup to a helper function with proper error
checking.  Only install the hash on the key if fake key is used,
and do it for EC keys too.

ok tb@ jsing@
lib/libtls/tls.c