pub struct X509VerifyParamRef(/* private fields */);
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_email(&mut self, email: &str) -> Result<(), ErrorStack>
pub fn set_email(&mut self, email: &str) -> Result<(), ErrorStack>
Set the expected email address.
This corresponds to X509_VERIFY_PARAM_set1_email
.
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: i64)
pub fn set_time(&mut self, time: i64)
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: i32)
pub fn set_depth(&mut self, depth: i32)
Set the verification depth
This corresponds to X509_VERIFY_PARAM_set_depth
.
Sourcepub fn set_auth_level(&mut self, lvl: i32)
pub fn set_auth_level(&mut self, lvl: i32)
Sets the authentication security level to auth_level
This corresponds to X509_VERIFY_PARAM_set_auth_level
.
Sourcepub fn auth_level(&self) -> i32
pub fn auth_level(&self) -> i32
Gets the current authentication security level
This corresponds to X509_VERIFY_PARAM_get_auth_level
.
Sourcepub fn set_purpose(&mut self, purpose: X509PurposeId) -> Result<(), ErrorStack>
pub fn set_purpose(&mut self, purpose: X509PurposeId) -> Result<(), ErrorStack>
Sets the verification purpose
This corresponds to X509_VERIFY_PARAM_set_purpose
.