@@ -41,18 +41,6 @@ use std::net::IpAddr;
41
41
use std:: net:: { Ipv4Addr , Ipv6Addr } ;
42
42
use std:: ops:: Deref ;
43
43
44
- #[ cfg( feature = "pem" ) ]
45
- use pem:: Pem ;
46
- use pki_types:: CertificateDer ;
47
- use time:: { OffsetDateTime , Time } ;
48
- use yasna:: models:: ObjectIdentifier ;
49
- use yasna:: models:: { GeneralizedTime , UTCTime } ;
50
- use yasna:: tags:: { TAG_BMPSTRING , TAG_TELETEXSTRING , TAG_UNIVERSALSTRING } ;
51
- use yasna:: DERWriter ;
52
- use yasna:: Tag ;
53
-
54
- use crate :: string:: { BmpString , Ia5String , PrintableString , TeletexString , UniversalString } ;
55
-
56
44
pub use certificate:: {
57
45
date_time_ymd, Attribute , BasicConstraints , Certificate , CertificateParams , CidrSubnet ,
58
46
CustomExtension , DnType , ExtendedKeyUsagePurpose , GeneralSubtree , IsCa , NameConstraints ,
@@ -69,10 +57,21 @@ pub use key_pair::PublicKeyData;
69
57
#[ cfg( all( feature = "crypto" , feature = "aws_lc_rs" ) ) ]
70
58
pub use key_pair:: RsaKeySize ;
71
59
pub use key_pair:: { SigningKey , SubjectPublicKeyInfo } ;
60
+ #[ cfg( feature = "pem" ) ]
61
+ use pem:: Pem ;
62
+ use pki_types:: CertificateDer ;
72
63
#[ cfg( feature = "crypto" ) ]
73
64
use ring_like:: digest;
74
65
pub use sign_algo:: algo:: * ;
75
66
pub use sign_algo:: SignatureAlgorithm ;
67
+ use time:: { OffsetDateTime , Time } ;
68
+ use yasna:: models:: ObjectIdentifier ;
69
+ use yasna:: models:: { GeneralizedTime , UTCTime } ;
70
+ use yasna:: tags:: { TAG_BMPSTRING , TAG_TELETEXSTRING , TAG_UNIVERSALSTRING } ;
71
+ use yasna:: DERWriter ;
72
+ use yasna:: Tag ;
73
+
74
+ use crate :: string:: { BmpString , Ia5String , PrintableString , TeletexString , UniversalString } ;
76
75
77
76
mod certificate;
78
77
mod crl;
@@ -987,9 +986,10 @@ mod tests {
987
986
988
987
#[ cfg( feature = "x509-parser" ) ]
989
988
mod test_ip_address_from_octets {
989
+ use std:: net:: IpAddr ;
990
+
990
991
use super :: super :: ip_addr_from_octets;
991
992
use super :: super :: Error ;
992
- use std:: net:: IpAddr ;
993
993
994
994
#[ test]
995
995
fn ipv4 ( ) {
@@ -1035,10 +1035,12 @@ mod tests {
1035
1035
1036
1036
#[ cfg( feature = "x509-parser" ) ]
1037
1037
mod test_san_type_from_general_name {
1038
- use crate :: SanType ;
1039
1038
use std:: net:: IpAddr ;
1039
+
1040
1040
use x509_parser:: extensions:: GeneralName ;
1041
1041
1042
+ use crate :: SanType ;
1043
+
1042
1044
#[ test]
1043
1045
fn with_ipv4 ( ) {
1044
1046
let octets = [ 1 , 2 , 3 , 4 ] ;
0 commit comments