pub struct X509VerifyParam(/* private fields */);
Expand description
Adjust parameters associated with certificate verification.
Methods from Deref<Target = X509VerifyParamRef>§
Sourcepub fn set_flags(&mut self, flags: X509Flags)
pub fn set_flags(&mut self, flags: X509Flags)
Set flags.
This corresponds to X509_VERIFY_PARAM_set_flags
.
Sourcepub fn clear_flags(&mut self, flags: X509Flags)
pub fn clear_flags(&mut self, flags: X509Flags)
Clear flags.
Useful to clear out default flags, such as X509Flags::TRUSTED_FIRST
when the fips feature is off.
This corresponds to [X509_VERIFY_PARAM_clear_flags
].
Sourcepub fn set_hostflags(&mut self, hostflags: X509CheckFlags)
pub fn set_hostflags(&mut self, hostflags: X509CheckFlags)
Set the host flags.
This corresponds to X509_VERIFY_PARAM_set_hostflags
.
Sourcepub fn set_host(&mut self, host: &str) -> Result<(), ErrorStack>
pub fn set_host(&mut self, host: &str) -> Result<(), ErrorStack>
Set the expected DNS hostname.
This corresponds to X509_VERIFY_PARAM_set1_host
.
Sourcepub fn set_ip(&mut self, ip: IpAddr) -> Result<(), ErrorStack>
pub fn set_ip(&mut self, ip: IpAddr) -> Result<(), ErrorStack>
Set the expected IPv4 or IPv6 address.
This corresponds to X509_VERIFY_PARAM_set1_ip
.
Trait Implementations§
Source§impl AsMut<X509VerifyParamRef> for X509VerifyParam
impl AsMut<X509VerifyParamRef> for X509VerifyParam
Source§fn as_mut(&mut self) -> &mut X509VerifyParamRef
fn as_mut(&mut self) -> &mut X509VerifyParamRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<X509VerifyParamRef> for X509VerifyParam
impl AsRef<X509VerifyParamRef> for X509VerifyParam
Source§fn as_ref(&self) -> &X509VerifyParamRef
fn as_ref(&self) -> &X509VerifyParamRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<X509VerifyParamRef> for X509VerifyParam
impl Borrow<X509VerifyParamRef> for X509VerifyParam
Source§fn borrow(&self) -> &X509VerifyParamRef
fn borrow(&self) -> &X509VerifyParamRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<X509VerifyParamRef> for X509VerifyParam
impl BorrowMut<X509VerifyParamRef> for X509VerifyParam
Source§fn borrow_mut(&mut self) -> &mut X509VerifyParamRef
fn borrow_mut(&mut self) -> &mut X509VerifyParamRef
Mutably borrows from an owned value. Read more
Source§impl Deref for X509VerifyParam
impl Deref for X509VerifyParam
Source§type Target = X509VerifyParamRef
type Target = X509VerifyParamRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &X509VerifyParamRef
fn deref(&self) -> &X509VerifyParamRef
Dereferences the value.
Source§impl DerefMut for X509VerifyParam
impl DerefMut for X509VerifyParam
Source§fn deref_mut(&mut self) -> &mut X509VerifyParamRef
fn deref_mut(&mut self) -> &mut X509VerifyParamRef
Mutably dereferences the value.
Source§impl Drop for X509VerifyParam
impl Drop for X509VerifyParam
Source§impl ForeignType for X509VerifyParam
impl ForeignType for X509VerifyParam
Source§type CType = X509_VERIFY_PARAM_st
type CType = X509_VERIFY_PARAM_st
The raw C type.
Source§type Ref = X509VerifyParamRef
type Ref = X509VerifyParamRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut X509_VERIFY_PARAM_st) -> X509VerifyParam
unsafe fn from_ptr(ptr: *mut X509_VERIFY_PARAM_st) -> X509VerifyParam
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut X509_VERIFY_PARAM_st
fn as_ptr(&self) -> *mut X509_VERIFY_PARAM_st
Returns a raw pointer to the wrapped value.
impl Send for X509VerifyParam
impl Sync for X509VerifyParam
Auto Trait Implementations§
impl Freeze for X509VerifyParam
impl RefUnwindSafe for X509VerifyParam
impl Unpin for X509VerifyParam
impl UnwindSafe for X509VerifyParam
Blanket Implementations§
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