summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dnstls-openssl.h
diff options
context:
space:
mode:
authorIwan Timmer <irtimmer@gmail.com>2018-07-27 00:01:58 +0100
committerIwan Timmer <irtimmer@gmail.com>2018-07-27 21:23:17 +0100
commit04c4d9199e04eb0ec2527ef34f182072d11a9338 (patch)
tree1366ebee483d4f07d23bcecb752da90db7ec122a /src/resolve/resolved-dnstls-openssl.h
parent096cbdce13b811f34726533d1a569912adc7cbec (diff)
downloadsystemd-04c4d9199e04eb0ec2527ef34f182072d11a9338.tar.gz
resolved: TCP Fast Open and TLS Session Tickets for OpenSSL
To decreae latency this add support for TFO and TLS Session Tickets. As OpenSSL wouldn't let you easily set a different function all written data is temporarily cached and therefore needs to be flushed after each SSL function which can write data.
Diffstat (limited to 'src/resolve/resolved-dnstls-openssl.h')
-rw-r--r--src/resolve/resolved-dnstls-openssl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dnstls-openssl.h b/src/resolve/resolved-dnstls-openssl.h
index c92d2b2354..c57bc1c57c 100644
--- a/src/resolve/resolved-dnstls-openssl.h
+++ b/src/resolve/resolved-dnstls-openssl.h
@@ -11,10 +11,12 @@
struct DnsTlsServerData {
SSL_CTX *ctx;
+ SSL_SESSION *session;
};
struct DnsTlsStreamData {
int handshake;
bool shutdown;
SSL *ssl;
+ BUF_MEM *write_buffer;
};