We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f9d142 commit ab246c5Copy full SHA for ab246c5
openssl/src/x509/tests.rs
@@ -988,7 +988,11 @@ fn test_verify_param_set_depth_fails_verification() {
988
store_bldr.add_cert(ca).unwrap();
989
let mut verify_params = X509VerifyParam::new().unwrap();
990
// OpenSSL 1.1.0+ considers the root certificate to not be part of the chain, while 1.0.2 and LibreSSL do
991
- let expected_depth = if cfg!(any(ossl110, bssl_google)) { 0 } else { 1 };
+ let expected_depth = if cfg!(any(ossl110, bssl_google)) {
992
+ 0
993
+ } else {
994
+ 1
995
+ };
996
verify_params.set_depth(expected_depth);
997
store_bldr.set_param(&verify_params).unwrap();
998
let store = store_bldr.build();
0 commit comments