Skip to content

Commit

Permalink
don't load system certs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmayclin committed Oct 16, 2024
1 parent 43c5fc5 commit c525bfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bindings/rust/bench/src/s2n_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions bindings/rust/bench/src/tests/record_padding.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::time::Duration;

use crate::{
openssl::OpenSslConfig,
openssl_extension::SslContextExtension,
Expand All @@ -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/
Expand All @@ -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::<S2NConfig, OpenSslConfig>::default().split();

Expand Down

0 comments on commit c525bfc

Please sign in to comment.