diff options
| author | Steven Fackler <[email protected]> | 2016-08-04 22:43:24 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-08-04 22:43:24 -0700 |
| commit | 378b86326cccceb1c21658a1a70ea442acc91495 (patch) | |
| tree | 459465ef4440352f64ac404a5edf75b99d1bf481 /openssl-sys/src | |
| parent | Move SSL_CTX_set_read_ahead to -sys (diff) | |
| download | rust-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.rs | 5 |
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 { |