pub struct X509VerifyParam(_);
Expand description
Adjust parameters associated with certificate verification.
Methods from Deref<Target = X509VerifyParamRef>
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_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack>
pub fn set_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack>
Set verification flags.
This corresponds to X509_VERIFY_PARAM_set_flags
.
sourcepub fn clear_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack>
pub fn clear_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack>
Clear verification flags.
This corresponds to X509_VERIFY_PARAM_clear_flags
.
sourcepub fn flags(&mut self) -> X509VerifyFlags
pub fn flags(&mut self) -> X509VerifyFlags
Gets verification flags.
This corresponds to X509_VERIFY_PARAM_get_flags
.
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
sourceimpl AsRef<X509VerifyParamRef> for X509VerifyParam
impl AsRef<X509VerifyParamRef> for X509VerifyParam
sourcefn as_ref(&self) -> &X509VerifyParamRef
fn as_ref(&self) -> &X509VerifyParamRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<X509VerifyParamRef> for X509VerifyParam
impl Borrow<X509VerifyParamRef> for X509VerifyParam
sourcefn borrow(&self) -> &X509VerifyParamRef
fn borrow(&self) -> &X509VerifyParamRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for X509VerifyParam
impl Deref for X509VerifyParam
type Target = X509VerifyParamRef
type Target = X509VerifyParamRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &X509VerifyParamRef
fn deref(&self) -> &X509VerifyParamRef
Dereferences the value.
sourceimpl DerefMut for X509VerifyParam
impl DerefMut for X509VerifyParam
sourcefn deref_mut(&mut self) -> &mut X509VerifyParamRef
fn deref_mut(&mut self) -> &mut X509VerifyParamRef
Mutably dereferences the value.
sourceimpl Drop for X509VerifyParam
impl Drop for X509VerifyParam
sourceimpl ForeignType for X509VerifyParam
impl ForeignType for X509VerifyParam
type CType = X509_VERIFY_PARAM
type CType = X509_VERIFY_PARAM
The raw C type.
type Ref = X509VerifyParamRef
type Ref = X509VerifyParamRef
The type representing a reference to this type.
sourceunsafe fn from_ptr(ptr: *mut X509_VERIFY_PARAM) -> X509VerifyParam
unsafe fn from_ptr(ptr: *mut X509_VERIFY_PARAM) -> X509VerifyParam
Constructs an instance of this type from its raw type.
sourcefn as_ptr(&self) -> *mut X509_VERIFY_PARAM
fn as_ptr(&self) -> *mut X509_VERIFY_PARAM
Returns a raw pointer to the wrapped value.
impl Send for X509VerifyParam
impl Sync for X509VerifyParam
Auto Trait Implementations
impl RefUnwindSafe for X509VerifyParam
impl Unpin for X509VerifyParam
impl UnwindSafe for X509VerifyParam
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more