@@ -14,7 +14,7 @@ use std::{
1414 convert:: { TryFrom as _, TryInto as _} ,
1515 ffi:: { CStr , CString } ,
1616 fmt:: { self , Debug , Display , Formatter , Write as _} ,
17- mem:: { size_of , MaybeUninit } ,
17+ mem:: MaybeUninit ,
1818 ops:: { Deref , DerefMut } ,
1919 os:: raw:: { c_uint, c_void} ,
2020 pin:: Pin ,
@@ -248,9 +248,9 @@ fn get_alpn(fd: *mut prio::PRFileDesc, pre: bool) -> Res<Option<String>> {
248248 secstatus_to_res ( unsafe {
249249 ssl:: SSL_GetNextProto (
250250 fd,
251- & mut alpn_state,
251+ & raw mut alpn_state,
252252 chosen. as_mut_ptr ( ) ,
253- & mut chosen_len,
253+ & raw mut chosen_len,
254254 c_uint:: try_from ( chosen. len ( ) ) ?,
255255 )
256256 } ) ?;
@@ -592,7 +592,7 @@ impl SecretAgent {
592592 /// If the range of versions isn't supported.
593593 pub fn set_version_range ( & mut self , min : Version , max : Version ) -> Res < ( ) > {
594594 let range = ssl:: SSLVersionRange { min, max } ;
595- secstatus_to_res ( unsafe { ssl:: SSL_VersionRangeSet ( self . fd , & range) } )
595+ secstatus_to_res ( unsafe { ssl:: SSL_VersionRangeSet ( self . fd , & raw const range) } )
596596 }
597597
598598 /// Enable a set of ciphers. Note that the order of these is not respected.
@@ -1333,7 +1333,7 @@ impl Server {
13331333 // ssl_auth_null means "I don't care what sort of certificate this is".
13341334 authType : ssl:: SSLAuthType :: ssl_auth_null,
13351335 certChain : null ( ) ,
1336- stapledOCSPResponses : & ocsp_array,
1336+ stapledOCSPResponses : & raw const ocsp_array,
13371337 signedCertTimestamps : std:: ptr:: from_ref ( & sct_item) . cast ( ) ,
13381338 delegCred : null ( ) ,
13391339 delegCredPrivKey : null ( ) ,
@@ -1343,7 +1343,7 @@ impl Server {
13431343 agent. fd ,
13441344 ( * cert) . cast ( ) ,
13451345 ( * key) . cast ( ) ,
1346- & extra,
1346+ & raw const extra,
13471347 c_uint:: try_from ( size_of :: < ssl:: SSLExtraServerCertDataStr > ( ) ) ?,
13481348 )
13491349 } ) ?;
0 commit comments