Skip to content

Commit

Permalink
Use evaluate_with_error and allow certificate_at_index
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Dec 8, 2021
1 parent 61f93e2 commit 7da7baa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/imp/security_framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,11 @@ impl<S: io::Read + io::Write> TlsStream<S> {
Some(trust) => trust,
None => return Ok(None),
};
trust.evaluate()?;
trust.evaluate_with_error()?;

// `certificate_at_index` was deprecated by Apple.
// No replacement provided.
#[allow(deprecated)]
Ok(trust.certificate_at_index(0).map(Certificate))
}

Expand Down

0 comments on commit 7da7baa

Please sign in to comment.