pub struct Limits {
pub permitted: Vec<String>,
pub excluded: Vec<String>,
pub constraints_critical: bool,
pub path_len: Option<u32>,
pub is_ca: bool,
pub signs_only_certificates: bool,
}Expand description
What the encoded certificate says about how far it may reach.
Read with x509-parser rather than with rcgen, deliberately. The point of checking is that
the bytes carry the limits, and asking the library that wrote them would only establish that
it remembered its own input.
Fields§
§permitted: Vec<String>Permitted DNS subtrees, in the order the certificate lists them.
excluded: Vec<String>Excluded DNS subtrees. Expected to be empty: this design permits, it does not exclude.
constraints_critical: boolWhether nameConstraints is marked critical, which RFC 5280 requires and which is what
stops a verifier from skipping it.
path_len: Option<u32>pathLenConstraint, if basicConstraints gives one. Some(0) means it cannot sign
another authority.
is_ca: bool§signs_only_certificates: boolWhether keyUsage allows anything beyond signing certificates and CRLs.
Trait Implementations§
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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