mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user