aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2018-05-24 20:00:28 -0700
committerSteven Fackler <[email protected]>2018-05-24 20:00:28 -0700
commitc0876cc8c65cf61d99006ce5e502a9a2d1acd70b (patch)
treef6bbe8445db4c519bc0bd67d9a1e4e95cf82910f /openssl-sys
parentMerge pull request #920 from Ralith/max-early-data-accessors (diff)
downloadrust-openssl-c0876cc8c65cf61d99006ce5e502a9a2d1acd70b.tar.xz
rust-openssl-c0876cc8c65cf61d99006ce5e502a9a2d1acd70b.zip
Add bindings to SSL_get_finished and SSL_get_peer_finished
These are used for the tls-unique SCRAM channel binding mode.
Diffstat (limited to 'openssl-sys')
-rw-r--r--openssl-sys/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index bc8f44e1..fda47fd0 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -2603,6 +2603,8 @@ extern "C" {
pub fn SSL_is_server(s: *mut SSL) -> c_int;
#[cfg(ossl110f)]
pub fn SSL_is_server(s: *const SSL) -> c_int;
+ pub fn SSL_get_finished(s: *const SSL, buf: *mut c_void, count: size_t) -> size_t;
+ pub fn SSL_get_peer_finished(s: *const SSL, buf: *mut c_void, count: size_t) -> size_t;
pub fn SSL_SESSION_free(s: *mut SSL_SESSION);
pub fn SSL_SESSION_get_id(s: *const SSL_SESSION, len: *mut c_uint) -> *const c_uchar;