mirror of https://git.kore.io/kore.git
update example for more recent openssl libs.
This commit is contained in:
parent
502368a27e
commit
98929263e0
|
@ -60,11 +60,12 @@ void
|
||||||
client_setup(struct connection *c)
|
client_setup(struct connection *c)
|
||||||
{
|
{
|
||||||
int i, fd;
|
int i, fd;
|
||||||
|
const char *name;
|
||||||
struct connection *backend;
|
struct connection *backend;
|
||||||
|
|
||||||
/* Paranoia. */
|
/* Paranoia. */
|
||||||
if (c->ssl->session == NULL ||
|
name = SSL_get_servername(c->ssl, TLSEXT_NAMETYPE_host_name);
|
||||||
c->ssl->session->tlsext_hostname == NULL) {
|
if (name == NULL) {
|
||||||
kore_connection_disconnect(c);
|
kore_connection_disconnect(c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue