From 58043a6b048633d3b249654ad1633358a610fed5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 27 Apr 2017 23:13:15 +0900 Subject: [PATCH] nghttpx: Guard the presence of TLS1_3_VERSION --- src/shrpx_connection.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shrpx_connection.cc b/src/shrpx_connection.cc index 3ef22852..877f5db1 100644 --- a/src/shrpx_connection.cc +++ b/src/shrpx_connection.cc @@ -809,9 +809,12 @@ int Connection::get_tcp_hint(TCPHint *hint) const { // For TLSv1.3, AES-GCM and CHACHA20_POLY1305 overhead are now 22 // bytes (5 (header) + 1 (ContentType) + 16 (tag)). size_t tls_overhead; +#ifdef TLS1_3_VERSION if (SSL_version(tls.ssl) == TLS1_3_VERSION) { tls_overhead = 22; - } else { + } else +#endif // TLS1_3_VERSION + { tls_overhead = 29; }