aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-10-27 19:12:55 -0700
committerSteven Fackler <[email protected]>2016-10-27 19:12:55 -0700
commit781417d50f72f832159e35c86dea76df5978434c (patch)
tree2c0d28dbbabdf032fadbfe93fafc41d3e61cbd94 /openssl-sys/src
parentFix description (diff)
downloadrust-openssl-781417d50f72f832159e35c86dea76df5978434c.tar.xz
rust-openssl-781417d50f72f832159e35c86dea76df5978434c.zip
Add a macro definition
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/ossl10x.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl-sys/src/ossl10x.rs b/openssl-sys/src/ossl10x.rs
index 595b673b..241dc782 100644
--- a/openssl-sys/src/ossl10x.rs
+++ b/openssl-sys/src/ossl10x.rs
@@ -527,6 +527,12 @@ fn set_id_callback() {
#[cfg(not(unix))]
fn set_id_callback() {}
+// macros
+#[cfg(ossl102)]
+pub unsafe fn SSL_CTX_set_ecdh_auto(ctx: *mut SSL_CTX, onoff: c_int) -> c_int {
+ ::SSL_CTX_ctrl(ctx, SSL_CTRL_SET_ECDH_AUTO, onoff as c_long, ::std::ptr::null_mut()) as c_int
+}
+
extern {
pub fn BIO_new(type_: *mut BIO_METHOD) -> *mut BIO;
pub fn BIO_s_file() -> *mut BIO_METHOD;