Commit 58043a6b authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Guard the presence of TLS1_3_VERSION

parent a885315e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment