parent
fc87d54649
commit
efe5112a8f
|
@ -3980,11 +3980,13 @@ transport_tls_init (struct server *s, struct error **e)
|
||||||
if (!SSL_set_fd (ssl, s->socket))
|
if (!SSL_set_fd (ssl, s->socket))
|
||||||
goto error_ssl_3;
|
goto error_ssl_3;
|
||||||
|
|
||||||
// XXX: maybe set `ssl_rx_want_tx' to force a handshake?
|
|
||||||
struct transport_tls_data *data = xcalloc (1, sizeof *data);
|
struct transport_tls_data *data = xcalloc (1, sizeof *data);
|
||||||
data->ssl_ctx = ssl_ctx;
|
data->ssl_ctx = ssl_ctx;
|
||||||
data->ssl = ssl;
|
data->ssl = ssl;
|
||||||
|
|
||||||
|
// Forces a handshake even if neither side wants to transmit data
|
||||||
|
data->ssl_rx_want_tx = true;
|
||||||
|
|
||||||
s->transport_data = data;
|
s->transport_data = data;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue