@@ -8,15 +8,15 @@ use super::{
88} ;
99use crate :: error:: ErrorStack ;
1010use crate :: ffi;
11- use crate :: hmac:: HmacCtx ;
11+ use crate :: hmac:: HmacCtxRef ;
1212use crate :: ssl:: TicketKeyCallbackResult ;
13- use crate :: symm:: CipherCtx ;
13+ use crate :: symm:: CipherCtxRef ;
1414use crate :: x509:: { X509StoreContext , X509StoreContextRef } ;
1515use foreign_types:: ForeignType ;
1616use foreign_types:: ForeignTypeRef ;
1717use libc:: { c_char, c_int, c_uchar, c_uint, c_void} ;
1818use std:: ffi:: CStr ;
19- use std:: mem:: { ManuallyDrop , MaybeUninit } ;
19+ use std:: mem:: MaybeUninit ;
2020use std:: ptr;
2121use std:: slice;
2222use std:: str;
@@ -290,8 +290,8 @@ where
290290 & SslRef ,
291291 & mut [ u8 ; 16 ] ,
292292 & mut [ u8 ; ffi:: EVP_MAX_IV_LENGTH as usize ] ,
293- & mut CipherCtx ,
294- & mut HmacCtx ,
293+ & mut CipherCtxRef ,
294+ & mut HmacCtxRef ,
295295 bool ,
296296 ) -> TicketKeyCallbackResult
297297 + ' static
@@ -328,8 +328,8 @@ where
328328 let iv = unsafe { iv. assume_init_mut ( ) } ;
329329
330330 // The EVP_CIPHER_CTX and HMAC_CTX are owned by boringSSL.
331- let mut evp_ctx = ManuallyDrop :: new ( unsafe { CipherCtx :: from_ptr ( evp_ctx) } ) ;
332- let mut hmac_ctx = ManuallyDrop :: new ( unsafe { HmacCtx :: from_ptr ( hmac_ctx) } ) ;
331+ let mut evp_ctx = unsafe { CipherCtxRef :: from_ptr_mut ( evp_ctx) } ;
332+ let mut hmac_ctx = unsafe { HmacCtxRef :: from_ptr_mut ( hmac_ctx) } ;
333333
334334 callback ( ssl, key_name, iv, & mut evp_ctx, & mut hmac_ctx, encrypt) . into ( )
335335}
0 commit comments