1- extern crate libc;
2- extern crate security_framework;
3- extern crate security_framework_sys;
4-
5- use self :: security_framework:: base;
6- use self :: security_framework:: certificate:: SecCertificate ;
7- use self :: security_framework:: identity:: SecIdentity ;
8- use self :: security_framework:: import_export:: { ImportedIdentity , Pkcs12ImportOptions } ;
9- use self :: security_framework:: random:: SecRandom ;
10- use self :: security_framework:: secure_transport:: {
1+ use security_framework:: base;
2+ use security_framework:: certificate:: SecCertificate ;
3+ use security_framework:: identity:: SecIdentity ;
4+ use security_framework:: import_export:: { ImportedIdentity , Pkcs12ImportOptions } ;
5+ use security_framework:: random:: SecRandom ;
6+ use security_framework:: secure_transport:: {
117 self , ClientBuilder , SslConnectionType , SslContext , SslProtocol , SslProtocolSide ,
128} ;
13- use self :: security_framework_sys:: base:: { errSecIO, errSecParam} ;
9+ use security_framework_sys:: base:: { errSecIO, errSecParam} ;
1410use std:: error;
1511use std:: fmt;
1612use std:: io;
@@ -24,28 +20,28 @@ use std::sync::Once;
2420 target_os = "tvos" ,
2521 target_os = "visionos"
2622) ) ) ]
27- use self :: security_framework:: os:: macos:: certificate:: { PropertyType , SecCertificateExt } ;
23+ use security_framework:: os:: macos:: certificate:: { PropertyType , SecCertificateExt } ;
2824#[ cfg( not( any(
2925 target_os = "ios" ,
3026 target_os = "watchos" ,
3127 target_os = "tvos" ,
3228 target_os = "visionos"
3329) ) ) ]
34- use self :: security_framework:: os:: macos:: certificate_oids:: CertificateOid ;
30+ use security_framework:: os:: macos:: certificate_oids:: CertificateOid ;
3531#[ cfg( not( any(
3632 target_os = "ios" ,
3733 target_os = "watchos" ,
3834 target_os = "tvos" ,
3935 target_os = "visionos"
4036) ) ) ]
41- use self :: security_framework:: os:: macos:: identity:: SecIdentityExt ;
37+ use security_framework:: os:: macos:: identity:: SecIdentityExt ;
4238#[ cfg( not( any(
4339 target_os = "ios" ,
4440 target_os = "watchos" ,
4541 target_os = "tvos" ,
4642 target_os = "visionos"
4743) ) ) ]
48- use self :: security_framework:: os:: macos:: import_export:: {
44+ use security_framework:: os:: macos:: import_export:: {
4945 ImportOptions , Pkcs12ImportOptionsExt , SecItems ,
5046} ;
5147#[ cfg( not( any(
@@ -54,9 +50,9 @@ use self::security_framework::os::macos::import_export::{
5450 target_os = "tvos" ,
5551 target_os = "visionos"
5652) ) ) ]
57- use self :: security_framework:: os:: macos:: keychain:: { self , KeychainSettings , SecKeychain } ;
53+ use security_framework:: os:: macos:: keychain:: { self , KeychainSettings , SecKeychain } ;
5854
59- use { Protocol , TlsAcceptorBuilder , TlsConnectorBuilder } ;
55+ use crate :: { Protocol , TlsAcceptorBuilder , TlsConnectorBuilder } ;
6056
6157static SET_AT_EXIT : Once = Once :: new ( ) ;
6258
0 commit comments