Allow setting a keypair on a tls context without specifying the private
authoreric <eric@openbsd.org>
Thu, 21 Jan 2021 19:09:10 +0000 (19:09 +0000)
committereric <eric@openbsd.org>
Thu, 21 Jan 2021 19:09:10 +0000 (19:09 +0000)
commit15339a8c6b46d6aea4f5df0384c38a8aef15f986
treed41e970b6bc1645a9aa37f725a58dc9f9ea35b26
parent10990a7dbe232a2965f8ede23851b8fe67233b77
Allow setting a keypair on a tls context without specifying the private
key, and fake it internally with the certificate public key instead.
It makes it easier for privsep engines like relayd that don't have to
use bogus keys anymore.

ok beck@ tb@ jsing@
lib/libtls/Symbols.list
lib/libtls/tls.c
lib/libtls/tls_config.c
lib/libtls/tls_internal.h