aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/x509/mod.rs
diff options
context:
space:
mode:
authorBenjamin Fry <[email protected]>2017-03-19 12:06:41 -0700
committerBastian Köcher <[email protected]>2018-03-07 13:50:12 +0100
commit35cad33d518f3b6ecff1a01a4707b35ab834342e (patch)
tree804a68c4d415c095b02a073c81b2f7eb77a8b02d /openssl/src/x509/mod.rs
parentproperly version library functions (diff)
downloadrust-openssl-35cad33d518f3b6ecff1a01a4707b35ab834342e.tar.xz
rust-openssl-35cad33d518f3b6ecff1a01a4707b35ab834342e.zip
fix error check
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.