diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-12 17:51:17 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-13 00:13:10 +0200 |
commit | efe5112a8f110bc17def77c930d5e3dcb6fe5c09 (patch) | |
tree | 3f7249322d27904ec88f7fa162b34031cd0a8773 /degesch.c | |
parent | fc87d5464918bfb7a01a7a8565556acab71a67ea (diff) | |
download | xK-efe5112a8f110bc17def77c930d5e3dcb6fe5c09.tar.gz xK-efe5112a8f110bc17def77c930d5e3dcb6fe5c09.tar.xz xK-efe5112a8f110bc17def77c930d5e3dcb6fe5c09.zip |
degesch: force a TLS handshake
This is sort of a no-op.
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3980,11 +3980,13 @@ transport_tls_init (struct server *s, struct error **e) if (!SSL_set_fd (ssl, s->socket)) goto error_ssl_3; - // XXX: maybe set `ssl_rx_want_tx' to force a handshake? struct transport_tls_data *data = xcalloc (1, sizeof *data); data->ssl_ctx = ssl_ctx; data->ssl = ssl; + // Forces a handshake even if neither side wants to transmit data + data->ssl_rx_want_tx = true; + s->transport_data = data; return true; |