nghttpx: Guard TLS1_3_VERSION
This commit is contained in:
parent
addd614e94
commit
50662c9c9e
|
@ -560,11 +560,13 @@ int ticket_key_cb(SSL *ssl, unsigned char *key_name, unsigned char *iv,
|
||||||
nullptr);
|
nullptr);
|
||||||
EVP_DecryptInit_ex(ctx, key.cipher, nullptr, key.data.enc_key.data(), iv);
|
EVP_DecryptInit_ex(ctx, key.cipher, nullptr, key.data.enc_key.data(), iv);
|
||||||
|
|
||||||
|
#ifdef TLS1_3_VERSION
|
||||||
// If ticket_key_cb is not set, OpenSSL always renew ticket for
|
// If ticket_key_cb is not set, OpenSSL always renew ticket for
|
||||||
// TLSv1.3.
|
// TLSv1.3.
|
||||||
if (SSL_version(ssl) == TLS1_3_VERSION) {
|
if (SSL_version(ssl) == TLS1_3_VERSION) {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
#endif // TLS1_3_VERSION
|
||||||
|
|
||||||
return i == 0 ? 1 : 2;
|
return i == 0 ? 1 : 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue