Skip to content

Commit c5a28c3

Browse files
committed
debug openssl-probe
1 parent 7eabd4e commit c5a28c3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,19 @@ impl Ssl {
15421542
// Otherwise, try to load the default cert file or cert dir.
15431543
let mut verify_roots = OwnedX509Store::default();
15441544

1545+
println!(
1546+
"verify_certs file={:?} dirs={:?}",
1547+
ctx.default_cert_file, ctx.default_cert_dir
1548+
);
1549+
println!(
1550+
"verify_certs file_exists={:?}",
1551+
ctx.default_cert_file.as_ref().map(|p| p.exists())
1552+
);
1553+
println!(
1554+
"verify_certs dir_exists={:?}",
1555+
ctx.default_cert_dir.as_ref().map(|p| p.exists())
1556+
);
1557+
15451558
if let Some(default_cert_file) = &ctx.default_cert_file {
15461559
verify_roots.add_from_files([default_cert_file.to_path_buf()])?;
15471560
} else if let Some(default_cert_dir) = &ctx.default_cert_dir {

0 commit comments

Comments
 (0)