Explicitly pass in an SSL_CTX * to the functions that operate on one,
authorjsing <jsing@openbsd.org>
Mon, 15 Aug 2016 14:04:23 +0000 (14:04 +0000)
committerjsing <jsing@openbsd.org>
Mon, 15 Aug 2016 14:04:23 +0000 (14:04 +0000)
commitb7f318e776f45becdb41ac569abf28d21ae83a3b
tree85474364584446a0428ff6cd773b2d31123535f3
parente1f28ec908e9c2cda74875e851e3cecfd136023f
Explicitly pass in an SSL_CTX * to the functions that operate on one,
instead of assuming that they should use the one associated with the TLS
context. This allows these functions to be used with the additional
SSL contexts that are needed to support server-side SNI.

Also rename tls_configure_keypair() to tls_configure_ssl_keypair(), so that
these functions have a common prefix.

ok reyk@
lib/libtls/tls.c
lib/libtls/tls_client.c
lib/libtls/tls_internal.h
lib/libtls/tls_server.c