diff options
| author | Steven Fackler <[email protected]> | 2016-04-30 09:27:50 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-04-30 09:27:50 -0700 |
| commit | 7b73003b6753020f9c5184145536f541c9d8d5ea (patch) | |
| tree | 4b36b0866384c2c49f0541fc3a0f3ce395a099f5 /openssl | |
| parent | Add Ssl::set_verify (diff) | |
| download | rust-openssl-7b73003b6753020f9c5184145536f541c9d8d5ea.tar.xz rust-openssl-7b73003b6753020f9c5184145536f541c9d8d5ea.zip | |
Add X509StoreContext::error_depth
Diffstat (limited to 'openssl')
| -rw-r--r-- | openssl/src/x509/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index cdd729aa..af1e6ed1 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -104,6 +104,10 @@ impl X509StoreContext { }) } } + + pub fn error_depth(&self) -> u32 { + unsafe { ffi::X509_STORE_CTX_get_error_depth(self.ctx) as u32 } + } } #[allow(non_snake_case)] |