From 02d2230a76ec0ebd6d18cd75e5a51168ad376dbe Mon Sep 17 00:00:00 2001 From: Ondrej Perutka Date: Wed, 16 Dec 2015 11:11:14 +0100 Subject: [PATCH] Fix regression of c_char type mismatches on ARM --- openssl/src/ssl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 981b3bcd..183cf19d 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -951,7 +951,7 @@ impl Ssl { return None; } - unsafe { String::from_utf8(CStr::from_ptr(name).to_bytes().to_vec()).ok() } + unsafe { String::from_utf8(CStr::from_ptr(name as *const _).to_bytes().to_vec()).ok() } } /// change the context corresponding to the current connection