Create contexts for server side SNI - these include the additional SSL_CTX
authorjsing <jsing@openbsd.org>
Mon, 22 Aug 2016 14:51:37 +0000 (14:51 +0000)
committerjsing <jsing@openbsd.org>
Mon, 22 Aug 2016 14:51:37 +0000 (14:51 +0000)
commitf89edc012de43049aedd6f8f8689a5774cb76408
tree9ba361fb471c156c0347ddb390bab0327835dd73
parent463dbded7cfe740838dc38b5a361e7839c9945dc
Create contexts for server side SNI - these include the additional SSL_CTX
that is required for certificate switching with libssl and the certificate
itself so that we can match against the subject and SANs. Hook up the
servername callback and switch to the appropriate SSL_CTX if we find a
matching certificate.

ok beck@
lib/libtls/tls.c
lib/libtls/tls_internal.h
lib/libtls/tls_server.c