add comment about consuming self in verify_cert

This commit is contained in:
Benjamin Fry 2017-03-19 12:12:57 -07:00 committed by Bastian Köcher
parent 35cad33d51
commit 910386027d
1 changed files with 3 additions and 0 deletions

View File

@ -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(|_| ()))