From c2a7c5b7f00b88c4aa6bc723afdca2bd785017d1 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 4 Aug 2016 22:28:33 -0700 Subject: Move SSL_set_tlsext_host_name to -sys --- openssl/src/ssl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openssl/src') 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. -- cgit v1.2.3