Lines Matching defs:X509VerifyResult
108 pub fn error(&self) -> X509VerifyResult {
109 unsafe { X509VerifyResult::from_raw(ffi::X509_STORE_CTX_get_error(self.as_ptr())) }
173 pub fn set_error(&mut self, result: X509VerifyResult) {
616 pub fn issued(&self, subject: &X509Ref) -> X509VerifyResult {
619 X509VerifyResult::from_raw(r)
1922 pub struct X509VerifyResult(c_int);
1924 impl fmt::Debug for X509VerifyResult {
1926 fmt.debug_struct("X509VerifyResult")
1933 impl fmt::Display for X509VerifyResult {
1939 impl Error for X509VerifyResult {}
1941 impl X509VerifyResult {
1942 /// Creates an `X509VerifyResult` from a raw error number.
1946 /// Some methods on `X509VerifyResult` are not thread safe if the error
1948 pub unsafe fn from_raw(err: c_int) -> X509VerifyResult {
1949 X509VerifyResult(err)
1952 /// Return the integer representation of an `X509VerifyResult`.
1974 pub const OK: X509VerifyResult = X509VerifyResult(ffi::X509_V_OK);
1976 pub const APPLICATION_VERIFICATION: X509VerifyResult =
1977 X509VerifyResult(ffi::X509_V_ERR_APPLICATION_VERIFICATION);