kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 98929263e003af376add9af445667b00c7522029
parent 502368a27ea703cdf030d79d9f579be643f5dd89
Author: Joris Vink <joris@coders.se>
Date:   Tue, 30 Apr 2019 20:41:38 +0200

update example for more recent openssl libs.

Diffstat:
examples/tls-proxy/src/proxy.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/tls-proxy/src/proxy.c b/examples/tls-proxy/src/proxy.c @@ -60,11 +60,12 @@ void client_setup(struct connection *c) { int i, fd; + const char *name; struct connection *backend; /* Paranoia. */ - if (c->ssl->session == NULL || - c->ssl->session->tlsext_hostname == NULL) { + name = SSL_get_servername(c->ssl, TLSEXT_NAMETYPE_host_name); + if (name == NULL) { kore_connection_disconnect(c); return; }