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/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/src')
| -rw-r--r-- | openssl/src/ssl/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 84d3613c..f40e1bcb 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -893,7 +893,7 @@ impl Ssl { pub fn set_hostname(&self, hostname: &str) -> Result<(), ErrorStack> { let cstr = CString::new(hostname).unwrap(); let ret = unsafe { - ffi_extras::SSL_set_tlsext_host_name(self.ssl, cstr.as_ptr() as *const _) + ffi::SSL_set_tlsext_host_name(self.ssl, cstr.as_ptr() as *mut _) }; // For this case, 0 indicates failure. |