diff options
| author | Steven Fackler <[email protected]> | 2016-08-04 22:28:33 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-08-04 22:28:33 -0700 |
| commit | c2a7c5b7f00b88c4aa6bc723afdca2bd785017d1 (patch) | |
| tree | db40985d278a1a36ffd983d95a849b4d795aeefa /openssl-sys/src | |
| parent | Move BIO macros into -sys (diff) | |
| download | rust-openssl-c2a7c5b7f00b88c4aa6bc723afdca2bd785017d1.tar.xz rust-openssl-c2a7c5b7f00b88c4aa6bc723afdca2bd785017d1.zip | |
Move SSL_set_tlsext_host_name to -sys
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 5bfe3d4a..b99214cf 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -531,6 +531,10 @@ pub unsafe fn SSL_CTX_get_options(ctx: *mut SSL_CTX) -> c_long { SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, 0, ptr::null_mut()) } +pub unsafe fn SSL_set_tlsext_host_name(s: *mut SSL, name: *mut c_char) -> c_long { + SSL_ctrl(s, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, name as *mut c_void) +} + // True functions extern "C" { pub fn ASN1_INTEGER_set(dest: *mut ASN1_INTEGER, value: c_long) -> c_int; |