aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/x509/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/x509/mod.rs')
-rw-r--r--openssl/src/x509/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs
index 1e7c4448..6133e1a3 100644
--- a/openssl/src/x509/mod.rs
+++ b/openssl/src/x509/mod.rs
@@ -86,11 +86,11 @@ impl X509StoreContextRef {
}
}
- #[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110)))]
pub fn verify_cert(self) -> Result<Option<X509VerifyError>, ErrorStack> {
unsafe {
- cvt(ffi::X509_verify_cert(self.as_ptr())).map(|_| ())
+ try!(cvt(ffi::X509_verify_cert(self.as_ptr())).map(|_| ()))
}
+ Ok(self.error())
}
/// Returns the error code of the context.