pub struct CrlIndex {
pub issuer: String,
pub this_update: i64,
pub next_update: Option<i64>,
/* private fields */
}Expand description
Indexed CRL — a parsed RFC 5280 v2 CRL with a BTreeMap keyed on serial
for O(log n) lookups. We hold the normalised big-endian serial bytes
(leading 0x00 sign-extension byte stripped), so callers can pass
either cert.serial_be or a raw hex value normalised the same way.
Fields§
§issuer: String§this_update: i64§next_update: Option<i64>Implementations§
Source§impl CrlIndex
impl CrlIndex
pub fn issuer(&self) -> &str
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn is_revoked(&self, serial_be: &[u8]) -> Option<&RevocationEntry>
pub fn is_revoked(&self, serial_be: &[u8]) -> Option<&RevocationEntry>
Fast lookup. Pass big-endian serial bytes; we normalise the leading
0x00 byte that DER inserts on positive integers whose top bit is
set, so 0x00 || … and the bare integer compare equal.
Sourcepub fn entries(&self) -> impl Iterator<Item = &RevocationEntry>
pub fn entries(&self) -> impl Iterator<Item = &RevocationEntry>
Iterator over all entries (sorted by serial).
Auto Trait Implementations§
impl Freeze for CrlIndex
impl RefUnwindSafe for CrlIndex
impl Send for CrlIndex
impl Sync for CrlIndex
impl Unpin for CrlIndex
impl UnsafeUnpin for CrlIndex
impl UnwindSafe for CrlIndex
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more