aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-08-04 22:43:24 -0700
committerSteven Fackler <[email protected]>2016-08-04 22:43:24 -0700
commit378b86326cccceb1c21658a1a70ea442acc91495 (patch)
tree459465ef4440352f64ac404a5edf75b99d1bf481 /openssl-sys/src
parentMove SSL_CTX_set_read_ahead to -sys (diff)
downloadrust-openssl-378b86326cccceb1c21658a1a70ea442acc91495.tar.xz
rust-openssl-378b86326cccceb1c21658a1a70ea442acc91495.zip
Move SSL_CTX_set_tmp_dh to -sys
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 40d51498..95c0fe92 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -293,6 +293,7 @@ pub const NID_key_usage: c_int = 83;
pub const PKCS5_SALT_LEN: c_int = 8;
+pub const SSL_CTRL_SET_TMP_DH: c_int = 3;
pub const SSL_CTRL_OPTIONS: c_int = 32;
pub const SSL_CTRL_MODE: c_int = 33;
pub const SSL_CTRL_CLEAR_OPTIONS: c_int = 77;
@@ -535,6 +536,10 @@ pub unsafe fn SSL_CTX_set_read_ahead(ctx: *mut SSL_CTX, m: c_long) -> c_long {
SSL_CTX_ctrl(ctx, SSL_CTRL_SET_READ_AHEAD, m, ptr::null_mut())
}
+pub unsafe fn SSL_CTX_set_tmp_dh(ctx: *mut SSL_CTX, dh: *mut DH) -> c_long {
+ SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TMP_DH, 0, dh as *mut c_void)
+}
+
pub unsafe fn SSL_CTX_set_tlsext_servername_callback(ctx: *mut SSL_CTX,
cb: Option<extern "C" fn()>)
-> c_long {