Skip to content

Commit

Permalink
feat: Turn on TLS greasing (#1760)
Browse files Browse the repository at this point in the history
* feat: Turn on TLS greasing

Fixes #1391
Needs #1739

* Make clippy happy
  • Loading branch information
larseggert authored Mar 27, 2024
1 parent f1560ab commit 20ef1be
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions neqo-crypto/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::{
time::Instant,
};

use neqo_common::{hex_snip_middle, hex_with_len, qdebug, qinfo, qtrace, qwarn};
use neqo_common::{hex_snip_middle, hex_with_len, qdebug, qtrace, qwarn};

pub use crate::{
agentio::{as_c_void, Record, RecordList},
Expand Down Expand Up @@ -406,10 +406,7 @@ impl SecretAgent {
self.set_option(ssl::Opt::Locking, false)?;
self.set_option(ssl::Opt::Tickets, false)?;
self.set_option(ssl::Opt::OcspStapling, true)?;
if let Err(e) = self.set_option(ssl::Opt::Grease, grease) {
// Until NSS supports greasing, it's OK to fail here.
qinfo!([self], "Failed to enable greasing {:?}", e);
}
self.set_option(ssl::Opt::Grease, grease)?;
Ok(())
}

Expand Down

0 comments on commit 20ef1be

Please sign in to comment.