nghttpx: Guard the presence of TLS1_3_VERSION
This commit is contained in:
parent
a885315ef5
commit
58043a6b04
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue