Struct openssl::x509::verify::X509VerifyParam [−]
pub struct X509VerifyParam(_);
Adjust parameters associated with certificate verification.
Methods from Deref<Target = X509VerifyParamRef>
pub fn set_hostflags(&mut self, hostflags: X509CheckFlags)
[src]
pub fn set_hostflags(&mut self, hostflags: X509CheckFlags)
Set the host flags.
This corresponds to X509_VERIFY_PARAM_set_hostflags
.
pub fn set_host(&mut self, host: &str) -> Result<(), ErrorStack>
[src]
pub fn set_host(&mut self, host: &str) -> Result<(), ErrorStack>
Set the expected DNS hostname.
This corresponds to X509_VERIFY_PARAM_set1_host
.
pub fn set_ip(&mut self, ip: IpAddr) -> Result<(), ErrorStack>
[src]
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
impl ForeignType for X509VerifyParam
impl ForeignType for X509VerifyParam
type CType = X509_VERIFY_PARAM
The raw C type.
type Ref = X509VerifyParamRef
The type representing a reference to this type.
unsafe 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.
fn as_ptr(&self) -> *mut X509_VERIFY_PARAM
fn as_ptr(&self) -> *mut X509_VERIFY_PARAM
Returns a raw pointer to the wrapped value.
impl Drop for X509VerifyParam
impl Drop for X509VerifyParam
impl Deref for X509VerifyParam
impl Deref for X509VerifyParam
type Target = X509VerifyParamRef
The resulting type after dereferencing.
fn deref(&self) -> &X509VerifyParamRef
fn deref(&self) -> &X509VerifyParamRef
Dereferences the value.
impl DerefMut for X509VerifyParam
impl DerefMut for X509VerifyParam
fn deref_mut(&mut self) -> &mut X509VerifyParamRef
fn deref_mut(&mut self) -> &mut X509VerifyParamRef
Mutably dereferences the value.
impl Borrow<X509VerifyParamRef> for X509VerifyParam
impl Borrow<X509VerifyParamRef> for X509VerifyParam
fn borrow(&self) -> &X509VerifyParamRef
fn borrow(&self) -> &X509VerifyParamRef
Immutably borrows from an owned value. Read more
impl AsRef<X509VerifyParamRef> for X509VerifyParam
impl AsRef<X509VerifyParamRef> for X509VerifyParam
fn as_ref(&self) -> &X509VerifyParamRef
fn as_ref(&self) -> &X509VerifyParamRef
Performs the conversion.
impl Send for X509VerifyParam
[src]
impl Send for X509VerifyParam
impl Sync for X509VerifyParam
[src]
impl Sync for X509VerifyParam