@@ -17,8 +17,8 @@ use crate::error::rustls_result;
17
17
use crate :: rslice:: { rustls_slice_bytes, rustls_str} ;
18
18
use crate :: rustls_result:: AlreadyUsed ;
19
19
use crate :: {
20
- error, ffi_panic_boundary, try_mut_from_ptr, try_ref_from_ptr, try_slice, ArcCastPtr ,
21
- BoxCastPtr , CastPtr ,
20
+ error, ffi_panic_boundary, try_arc_from_ptr , try_mut_from_ptr, try_ref_from_ptr, try_slice,
21
+ ArcCastPtr , BoxCastPtr , CastPtr ,
22
22
} ;
23
23
use rustls_result:: NullParameter ;
24
24
@@ -530,7 +530,7 @@ impl rustls_root_cert_store_builder {
530
530
Some ( b) => b,
531
531
} ;
532
532
533
- ArcCastPtr :: set_mut_ptr( root_cert_store_out, builder. roots. clone( ) . into ( ) ) ;
533
+ ArcCastPtr :: set_mut_ptr( root_cert_store_out, builder. roots. clone( ) ) ;
534
534
535
535
rustls_result:: Ok
536
536
}
@@ -559,7 +559,7 @@ pub struct rustls_root_cert_store {
559
559
}
560
560
561
561
impl CastPtr for rustls_root_cert_store {
562
- type RustType = Arc < RootCertStore > ;
562
+ type RustType = RootCertStore ;
563
563
}
564
564
565
565
impl ArcCastPtr for rustls_root_cert_store { }
@@ -647,7 +647,7 @@ impl rustls_web_pki_client_cert_verifier_builder {
647
647
store : * const rustls_root_cert_store ,
648
648
) -> * mut rustls_web_pki_client_cert_verifier_builder {
649
649
ffi_panic_boundary ! {
650
- let store = try_ref_from_ptr !( store) ;
650
+ let store = try_arc_from_ptr !( store) ;
651
651
let builder = ClientCertVerifierBuilder {
652
652
roots: store. clone( ) ,
653
653
crls: Vec :: default ( ) ,
0 commit comments