diff options
| author | Benjamin Fry <[email protected]> | 2017-03-19 12:12:57 -0700 |
|---|---|---|
| committer | Bastian Köcher <[email protected]> | 2018-03-07 13:50:12 +0100 |
| commit | 910386027dea776c3b5034d216169cefde912e45 (patch) | |
| tree | d76b41324102890174e983718d68ab646f3c9630 /openssl/src | |
| parent | fix error check (diff) | |
| download | rust-openssl-910386027dea776c3b5034d216169cefde912e45.tar.xz rust-openssl-910386027dea776c3b5034d216169cefde912e45.zip | |
add comment about consuming self in verify_cert
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/x509/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 6133e1a3..cb5eca40 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -86,6 +86,9 @@ impl X509StoreContextRef { } } + /// Verifies the certificate associated in the `build()` method + /// + /// This consumes self as the `X509StoreContext` must be reinitialized subsequent to any cally to verify. pub fn verify_cert(self) -> Result<Option<X509VerifyError>, ErrorStack> { unsafe { try!(cvt(ffi::X509_verify_cert(self.as_ptr())).map(|_| ())) |