aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-10-18 22:18:09 -0700
committerSteven Fackler <[email protected]>2016-10-18 22:21:06 -0700
commit5ab037f056174b4d69024f58fe42cf0c41a34db6 (patch)
treedb69ff63d60f1efcb9ae90124118814387520b1d /openssl-sys/src
parentDe-enumify X509ValidationError (diff)
downloadrust-openssl-5ab037f056174b4d69024f58fe42cf0c41a34db6.tar.xz
rust-openssl-5ab037f056174b4d69024f58fe42cf0c41a34db6.zip
Allow the X509 verify error to be read from an SslRef
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 33abad21..4c8d63ca 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -647,7 +647,8 @@ extern {
pub fn SSL_get_servername(ssl: *const SSL, name_type: c_int) -> *const c_char;
pub fn SSL_get_current_cipher(ssl: *const SSL) -> *const SSL_CIPHER;
#[cfg(not(ossl101))]
- pub fn SSL_get0_param(ssl: *mut ::SSL) -> *mut X509_VERIFY_PARAM;
+ pub fn SSL_get0_param(ssl: *mut SSL) -> *mut X509_VERIFY_PARAM;
+ pub fn SSL_get_verify_result(ssl: *const SSL) -> c_long;
#[cfg(not(osslconf = "OPENSSL_NO_COMP"))]
pub fn SSL_COMP_get_name(comp: *const COMP_METHOD) -> *const c_char;