Skip to content

Commit 983dab6

Browse files
committed
Merge pull request #364 from leon-anavi/master
Cast correctly c_char raw pointers (fixes build on ARM #363)
2 parents 44a1eb6 + 6d4bfaa commit 983dab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openssl/src/ssl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ impl <'a> SslCipher<'a> {
827827
let desc_ptr = ffi::SSL_CIPHER_description(self.cipher, buf.as_mut_ptr(), 128);
828828

829829
if !desc_ptr.is_null() {
830-
String::from_utf8(CStr::from_ptr(desc_ptr).to_bytes().to_vec()).ok()
830+
String::from_utf8(CStr::from_ptr(desc_ptr as *const _).to_bytes().to_vec()).ok()
831831
} else {
832832
None
833833
}

0 commit comments

Comments
 (0)