Commit 983dab69 authored by Steven Fackler's avatar Steven Fackler
Browse files

Merge pull request #364 from leon-anavi/master

Cast correctly c_char raw pointers (fixes build on ARM #363)
parents 44a1eb68 6d4bfaa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -827,7 +827,7 @@ impl <'a> SslCipher<'a> {
            let desc_ptr = ffi::SSL_CIPHER_description(self.cipher, buf.as_mut_ptr(), 128);

            if !desc_ptr.is_null() {
                String::from_utf8(CStr::from_ptr(desc_ptr).to_bytes().to_vec()).ok()
                String::from_utf8(CStr::from_ptr(desc_ptr as *const _).to_bytes().to_vec()).ok()
            } else {
                None
            }