From c525bfc20d4ff15eb65c475375039299cf7b6e39 Mon Sep 17 00:00:00 2001 From: James Mayclin Date: Wed, 16 Oct 2024 20:24:01 +0000 Subject: [PATCH] don't load system certs --- bindings/rust/bench/src/s2n_tls.rs | 2 +- bindings/rust/bench/src/tests/record_padding.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bindings/rust/bench/src/s2n_tls.rs b/bindings/rust/bench/src/s2n_tls.rs index c821444be01..1ce6598062d 100644 --- a/bindings/rust/bench/src/s2n_tls.rs +++ b/bindings/rust/bench/src/s2n_tls.rs @@ -80,7 +80,7 @@ impl crate::harness::TlsBenchConfig for S2NConfig { let mut builder = Builder::new(); builder .set_security_policy(&Policy::from_version(security_policy)?)? - .wipe_trust_store()? + .with_system_certs(false)? .set_client_auth_type(match handshake_type { HandshakeType::MutualAuth => ClientAuthType::Required, _ => ClientAuthType::None, // ServerAuth or resumption handshake diff --git a/bindings/rust/bench/src/tests/record_padding.rs b/bindings/rust/bench/src/tests/record_padding.rs index 4e83fde3aba..64d709bd38c 100644 --- a/bindings/rust/bench/src/tests/record_padding.rs +++ b/bindings/rust/bench/src/tests/record_padding.rs @@ -1,5 +1,3 @@ -use std::time::Duration; - use crate::{ openssl::OpenSslConfig, openssl_extension::SslContextExtension, @@ -12,7 +10,7 @@ use crate::{ /// /// Record padding is new in TLS 1.3 /// -/// We configure an openssl client to pad records to a specific size using +/// We configure an openssl client to add pading records using /// `SSL_CTX_set_block_padding`. This function will pad records to a multiple /// of the supplied `pad_to` size. /// https://docs.openssl.org/1.1.1/man3/SSL_CTX_set_record_padding_callback/ @@ -38,7 +36,7 @@ fn record_padding() { assert!(pair.round_trip_assert(send).is_ok()); } } - + fn s2n_client_case(pad_to: usize) { let (s2n_config, mut ossl_config) = ConfigPair::::default().split();