Skip to content

Commit

Permalink
boring: Support validating certificates against CRLs
Browse files Browse the repository at this point in the history
Adds CRL types and validation of certificates against CRLs with
a `X509Store/X509StoreContext`. Also enables customizing verification
flags on the `X509Store`, required to enable CRL checking.
  • Loading branch information
ravi-signal committed Jul 20, 2022
1 parent 74a453d commit 46fbadb
Show file tree
Hide file tree
Showing 10 changed files with 992 additions and 2 deletions.
10 changes: 10 additions & 0 deletions boring/src/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,16 @@ impl<T: Stackable> StackRef<T> {
}
}

impl<T> fmt::Debug for StackRef<T>
where
T: Stackable,
T::Ref: fmt::Debug,
{
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.debug_list().entries(self).finish()
}
}

impl<T: Stackable> Index<usize> for StackRef<T> {
type Output = T::Ref;

Expand Down
Loading

0 comments on commit 46fbadb

Please sign in to comment.