Struct openssl::x509::verify::X509CheckFlags [−]
pub struct X509CheckFlags { /* fields omitted */ }Flags used to check an X509 certificate.
Methods
impl X509CheckFlags
impl X509CheckFlagspub const ALWAYS_CHECK_SUBJECT: X509CheckFlags
ALWAYS_CHECK_SUBJECT: X509CheckFlags = X509CheckFlags{bits: ffi::X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT,}
pub const NO_WILDCARDS: X509CheckFlags
NO_WILDCARDS: X509CheckFlags = X509CheckFlags{bits: ffi::X509_CHECK_FLAG_NO_WILDCARDS,}
pub const NO_PARTIAL_WILDCARDS: X509CheckFlags
NO_PARTIAL_WILDCARDS: X509CheckFlags = X509CheckFlags{bits: ffi::X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS,}
pub const MULTI_LABEL_WILDCARDS: X509CheckFlags
MULTI_LABEL_WILDCARDS: X509CheckFlags = X509CheckFlags{bits: ffi::X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS,}
pub const SINGLE_LABEL_SUBDOMAINS: X509CheckFlags
SINGLE_LABEL_SUBDOMAINS: X509CheckFlags = X509CheckFlags{bits: ffi::X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS,}
pub const NEVER_CHECK_SUBJECT: X509CheckFlags
NEVER_CHECK_SUBJECT: X509CheckFlags = X509CheckFlags{bits: ffi::X509_CHECK_FLAG_NEVER_CHECK_SUBJECT,}
Requires OpenSSL 1.1.0 or newer.
pub const FLAG_NO_WILDCARDS: X509CheckFlags
: renamed to NO_WILDCARDS
FLAG_NO_WILDCARDS: X509CheckFlags = X509CheckFlags{bits: ffi::X509_CHECK_FLAG_NO_WILDCARDS,}
pub fn empty() -> X509CheckFlags
pub fn empty() -> X509CheckFlagsReturns an empty set of flags.
pub fn all() -> X509CheckFlags
pub fn all() -> X509CheckFlagsReturns the set containing all flags.
pub fn bits(&self) -> c_uint
pub fn bits(&self) -> c_uintReturns the raw value of the flags currently stored.
pub fn from_bits(bits: c_uint) -> Option<X509CheckFlags>
pub fn from_bits(bits: c_uint) -> Option<X509CheckFlags>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_uint) -> X509CheckFlags
pub fn from_bits_truncate(bits: c_uint) -> X509CheckFlagsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: X509CheckFlags) -> bool
pub fn intersects(&self, other: X509CheckFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: X509CheckFlags) -> bool
pub fn contains(&self, other: X509CheckFlags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: X509CheckFlags)
pub fn insert(&mut self, other: X509CheckFlags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: X509CheckFlags)
pub fn remove(&mut self, other: X509CheckFlags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: X509CheckFlags)
pub fn toggle(&mut self, other: X509CheckFlags)Toggles the specified flags in-place.
pub fn set(&mut self, other: X509CheckFlags, value: bool)
pub fn set(&mut self, other: X509CheckFlags, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for X509CheckFlags
impl Copy for X509CheckFlagsimpl PartialEq for X509CheckFlags
impl PartialEq for X509CheckFlagsfn eq(&self, other: &X509CheckFlags) -> bool
fn eq(&self, other: &X509CheckFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &X509CheckFlags) -> bool
fn ne(&self, other: &X509CheckFlags) -> boolThis method tests for !=.
impl Eq for X509CheckFlags
impl Eq for X509CheckFlagsimpl Clone for X509CheckFlags
impl Clone for X509CheckFlagsfn clone(&self) -> X509CheckFlags
fn clone(&self) -> X509CheckFlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for X509CheckFlags
impl PartialOrd for X509CheckFlagsfn partial_cmp(&self, other: &X509CheckFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &X509CheckFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &X509CheckFlags) -> bool
fn lt(&self, other: &X509CheckFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &X509CheckFlags) -> bool
fn le(&self, other: &X509CheckFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &X509CheckFlags) -> bool
fn gt(&self, other: &X509CheckFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &X509CheckFlags) -> bool
fn ge(&self, other: &X509CheckFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for X509CheckFlags
impl Ord for X509CheckFlagsfn cmp(&self, other: &X509CheckFlags) -> Ordering
fn cmp(&self, other: &X509CheckFlags) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for X509CheckFlags
impl Hash for X509CheckFlagsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for X509CheckFlags
impl Debug for X509CheckFlagsimpl Binary for X509CheckFlags
impl Binary for X509CheckFlagsimpl Octal for X509CheckFlags
impl Octal for X509CheckFlagsimpl LowerHex for X509CheckFlags
impl LowerHex for X509CheckFlagsimpl UpperHex for X509CheckFlags
impl UpperHex for X509CheckFlagsimpl BitOr for X509CheckFlags
impl BitOr for X509CheckFlagstype Output = X509CheckFlags
The resulting type after applying the | operator.
fn bitor(self, other: X509CheckFlags) -> X509CheckFlags
fn bitor(self, other: X509CheckFlags) -> X509CheckFlagsReturns the union of the two sets of flags.
impl BitOrAssign for X509CheckFlags
impl BitOrAssign for X509CheckFlagsfn bitor_assign(&mut self, other: X509CheckFlags)
fn bitor_assign(&mut self, other: X509CheckFlags)Adds the set of flags.
impl BitXor for X509CheckFlags
impl BitXor for X509CheckFlagstype Output = X509CheckFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: X509CheckFlags) -> X509CheckFlags
fn bitxor(self, other: X509CheckFlags) -> X509CheckFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for X509CheckFlags
impl BitXorAssign for X509CheckFlagsfn bitxor_assign(&mut self, other: X509CheckFlags)
fn bitxor_assign(&mut self, other: X509CheckFlags)Toggles the set of flags.
impl BitAnd for X509CheckFlags
impl BitAnd for X509CheckFlagstype Output = X509CheckFlags
The resulting type after applying the & operator.
fn bitand(self, other: X509CheckFlags) -> X509CheckFlags
fn bitand(self, other: X509CheckFlags) -> X509CheckFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for X509CheckFlags
impl BitAndAssign for X509CheckFlagsfn bitand_assign(&mut self, other: X509CheckFlags)
fn bitand_assign(&mut self, other: X509CheckFlags)Disables all flags disabled in the set.
impl Sub for X509CheckFlags
impl Sub for X509CheckFlagstype Output = X509CheckFlags
The resulting type after applying the - operator.
fn sub(self, other: X509CheckFlags) -> X509CheckFlags
fn sub(self, other: X509CheckFlags) -> X509CheckFlagsReturns the set difference of the two sets of flags.
impl SubAssign for X509CheckFlags
impl SubAssign for X509CheckFlagsfn sub_assign(&mut self, other: X509CheckFlags)
fn sub_assign(&mut self, other: X509CheckFlags)Disables all flags enabled in the set.
impl Not for X509CheckFlags
impl Not for X509CheckFlagstype Output = X509CheckFlags
The resulting type after applying the ! operator.
fn not(self) -> X509CheckFlags
fn not(self) -> X509CheckFlagsReturns the complement of this set of flags.
impl Extend<X509CheckFlags> for X509CheckFlags
impl Extend<X509CheckFlags> for X509CheckFlagsfn extend<T: IntoIterator<Item = X509CheckFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = X509CheckFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<X509CheckFlags> for X509CheckFlags
impl FromIterator<X509CheckFlags> for X509CheckFlagsfn from_iter<T: IntoIterator<Item = X509CheckFlags>>(
iterator: T
) -> X509CheckFlags
fn from_iter<T: IntoIterator<Item = X509CheckFlags>>(
iterator: T
) -> X509CheckFlagsCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for X509CheckFlags
impl Send for X509CheckFlagsimpl Sync for X509CheckFlags
impl Sync for X509CheckFlags