pub struct X509VerifyParamRef(/* private fields */);
Expand description
A borrowed reference to a X509VerifyParam
.
Implementations§
Source§impl X509VerifyParamRef
impl 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 ForeignTypeRef for X509VerifyParamRef
impl ForeignTypeRef for X509VerifyParamRef
Source§type CType = X509_VERIFY_PARAM_st
type CType = X509_VERIFY_PARAM_st
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
impl Send for X509VerifyParamRef
impl Sync for X509VerifyParamRef
Auto Trait Implementations§
impl Freeze for X509VerifyParamRef
impl !RefUnwindSafe for X509VerifyParamRef
impl Unpin for X509VerifyParamRef
impl UnwindSafe for X509VerifyParamRef
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