Skip to content

Commit

Permalink
feat: Enable SSL_ENABLE_CH_EXTENSION_PERMUTATION (#2217)
Browse files Browse the repository at this point in the history
* feat: Enable `SSL_ENABLE_CH_EXTENSION_PERMUTATION`

This enables the NSS `SSL_ENABLE_CH_EXTENSION_PERMUTATION` option
by default.

CC @martinthomson @dennisjackson

* fmt
  • Loading branch information
larseggert authored Nov 6, 2024
1 parent c0a2bfe commit 5d8651a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions neqo-crypto/bindings/bindings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ variables = [
"SSL_ENABLE_HELLO_DOWNGRADE_CHECK",
"SSL_SUPPRESS_END_OF_EARLY_DATA",
"SSL_ENABLE_GREASE",
"SSL_ENABLE_CH_EXTENSION_PERMUTATION"
]

[nss_ciphers]
Expand Down
1 change: 1 addition & 0 deletions neqo-crypto/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ impl SecretAgent {
self.set_option(ssl::Opt::Tickets, false)?;
self.set_option(ssl::Opt::OcspStapling, true)?;
self.set_option(ssl::Opt::Grease, grease)?;
self.set_option(ssl::Opt::EnableChExtensionPermutation, true)?;
Ok(())
}

Expand Down
2 changes: 2 additions & 0 deletions neqo-crypto/src/ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub enum Opt {
HelloDowngradeCheck,
SuppressEndOfEarlyData,
Grease,
EnableChExtensionPermutation,
}

impl Opt {
Expand All @@ -66,6 +67,7 @@ impl Opt {
Self::HelloDowngradeCheck => SSLOption::SSL_ENABLE_HELLO_DOWNGRADE_CHECK,
Self::SuppressEndOfEarlyData => SSLOption::SSL_SUPPRESS_END_OF_EARLY_DATA,
Self::Grease => SSLOption::SSL_ENABLE_GREASE,
Self::EnableChExtensionPermutation => SSLOption::SSL_ENABLE_CH_EXTENSION_PERMUTATION,
};
i as PRInt32
}
Expand Down

0 comments on commit 5d8651a

Please sign in to comment.