mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2180 - Follow-up: Move sentinel check up a bit.
This commit is contained in:
parent
dc4bf9b823
commit
f6f0a495a7
1 changed files with 7 additions and 7 deletions
|
|
@ -1858,7 +1858,13 @@ nsNSSComponent::InitializeNSS()
|
|||
SSL_OptionSetDefault(SSL_ENABLE_RENEGOTIATION, SSL_RENEGOTIATE_REQUIRES_XTN);
|
||||
|
||||
SSL_OptionSetDefault(SSL_ENABLE_EXTENDED_MASTER_SECRET, true);
|
||||
|
||||
|
||||
// Set TLS 1.3 hello downgrade sentinel?
|
||||
bool enableDowngradeCheck =
|
||||
Preferences::GetBool("security.tls.hello_downgrade_check",
|
||||
HELLO_DOWNGRADE_CHECK_DEFAULT);
|
||||
SSL_OptionSetDefault(SSL_ENABLE_HELLO_DOWNGRADE_CHECK, enableDowngradeCheck);
|
||||
|
||||
SSL_OptionSetDefault(SSL_ENABLE_FALSE_START,
|
||||
Preferences::GetBool("security.ssl.enable_false_start",
|
||||
FALSE_START_ENABLED_DEFAULT));
|
||||
|
|
@ -1883,12 +1889,6 @@ nsNSSComponent::InitializeNSS()
|
|||
Preferences::GetBool("security.ssl.enable_tls13_compat_mode",
|
||||
TLS13_COMPAT_MODE_DEFAULT));
|
||||
|
||||
// Set TLS 1.3 hello downgrade sentinel?
|
||||
bool enableDowngradeCheck =
|
||||
Preferences::GetBool("security.tls.hello_downgrade_check",
|
||||
HELLO_DOWNGRADE_CHECK_DEFAULT);
|
||||
SSL_OptionSetDefault(SSL_ENABLE_HELLO_DOWNGRADE_CHECK, enableDowngradeCheck);
|
||||
|
||||
|
||||
if (NS_FAILED(InitializeCipherSuite())) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue