Struct openssl::x509::verify::X509VerifyParamRef
source · pub struct X509VerifyParamRef(_);
Expand description
Reference to X509VerifyParam
.
Implementations§
source§impl X509VerifyParamRef
impl 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
.
sourcepub fn set_time(&mut self, time: time_t)
pub fn set_time(&mut self, time: time_t)
Set the verification time, where time is of type time_t, traditionaly defined as seconds since the epoch
This corresponds to X509_VERIFY_PARAM_set_time
.
sourcepub fn set_depth(&mut self, depth: c_int)
pub fn set_depth(&mut self, depth: c_int)
Set the verification depth
This corresponds to X509_VERIFY_PARAM_set_depth
.
Trait Implementations§
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 ForeignTypeRef for X509VerifyParamRef
impl ForeignTypeRef for X509VerifyParamRef
§type CType = X509_VERIFY_PARAM
type CType = X509_VERIFY_PARAM
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.