Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Arash Sahebolamri committed Dec 9, 2023
1 parent cb9a241 commit ec2e1ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion rustls-mbedpki-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ utils = { package = "rustls-mbedtls-provider-utils", path = "../rustls-mbedtls-p
rustls-pemfile = "2"
rustls = { version = "0.22.1" }
# We enable the time feature for tests to make sure it does not mess up cert expiration checking
mbedtls = { version = "0.12.1", features = ["time"], default_features = false }
mbedtls = { version = "0.12.1", features = ["time"], default_features = false }
10 changes: 2 additions & 8 deletions rustls-mbedpki-provider/src/client_cert_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,8 @@ impl ClientCertVerifier for MbedTlsClientCertVerifier {
};

let mut error_msg = String::default();
mbedtls::x509::Certificate::verify_with_callback(
&chain,
&self.trusted_cas,
None,
Some(&mut error_msg),
callback
)
.map_err(|e| mbedtls_err_into_rustls_err_with_error_msg(e, &error_msg))?;
mbedtls::x509::Certificate::verify_with_callback(&chain, &self.trusted_cas, None, Some(&mut error_msg), callback)
.map_err(|e| mbedtls_err_into_rustls_err_with_error_msg(e, &error_msg))?;

verify_certificates_active(chain.iter().map(|c| &**c), now, &self.cert_active_check)?;

Expand Down

0 comments on commit ec2e1ee

Please sign in to comment.