Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed Feb 19, 2024
1 parent 7f9d142 commit ab246c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openssl/src/x509/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,11 @@ fn test_verify_param_set_depth_fails_verification() {
store_bldr.add_cert(ca).unwrap();
let mut verify_params = X509VerifyParam::new().unwrap();
// OpenSSL 1.1.0+ considers the root certificate to not be part of the chain, while 1.0.2 and LibreSSL do
let expected_depth = if cfg!(any(ossl110, bssl_google)) { 0 } else { 1 };
let expected_depth = if cfg!(any(ossl110, bssl_google)) {
0
} else {
1
};
verify_params.set_depth(expected_depth);
store_bldr.set_param(&verify_params).unwrap();
let store = store_bldr.build();
Expand Down

0 comments on commit ab246c5

Please sign in to comment.