@@ -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 ,
@@ -65,14 +53,22 @@ pub use csr::{CertificateSigningRequest, CertificateSigningRequestParams, Public
65
53
pub use error:: { Error , InvalidAsn1String } ;
66
54
#[ cfg( feature = "crypto" ) ]
67
55
pub use key_pair:: KeyPair ;
68
- pub use key_pair:: PublicKeyData ;
69
56
#[ cfg( all( feature = "crypto" , feature = "aws_lc_rs" ) ) ]
70
57
pub use key_pair:: RsaKeySize ;
71
- pub use key_pair:: { SigningKey , SubjectPublicKeyInfo } ;
58
+ pub use key_pair:: { PublicKeyData , SigningKey , SubjectPublicKeyInfo } ;
59
+ #[ cfg( feature = "pem" ) ]
60
+ use pem:: Pem ;
61
+ use pki_types:: CertificateDer ;
72
62
#[ cfg( feature = "crypto" ) ]
73
63
use ring_like:: digest;
74
64
pub use sign_algo:: algo:: * ;
75
65
pub use sign_algo:: SignatureAlgorithm ;
66
+ use time:: { OffsetDateTime , Time } ;
67
+ use yasna:: models:: { GeneralizedTime , ObjectIdentifier , UTCTime } ;
68
+ use yasna:: tags:: { TAG_BMPSTRING , TAG_TELETEXSTRING , TAG_UNIVERSALSTRING } ;
69
+ use yasna:: { DERWriter , Tag } ;
70
+
71
+ use crate :: string:: { BmpString , Ia5String , PrintableString , TeletexString , UniversalString } ;
76
72
77
73
mod certificate;
78
74
mod crl;
@@ -987,10 +983,10 @@ mod tests {
987
983
988
984
#[ cfg( feature = "x509-parser" ) ]
989
985
mod test_ip_address_from_octets {
990
- use super :: super :: ip_addr_from_octets;
991
- use super :: super :: Error ;
992
986
use std:: net:: IpAddr ;
993
987
988
+ use super :: super :: { ip_addr_from_octets, Error } ;
989
+
994
990
#[ test]
995
991
fn ipv4 ( ) {
996
992
let octets = [ 10 , 20 , 30 , 40 ] ;
@@ -1035,10 +1031,12 @@ mod tests {
1035
1031
1036
1032
#[ cfg( feature = "x509-parser" ) ]
1037
1033
mod test_san_type_from_general_name {
1038
- use crate :: SanType ;
1039
1034
use std:: net:: IpAddr ;
1035
+
1040
1036
use x509_parser:: extensions:: GeneralName ;
1041
1037
1038
+ use crate :: SanType ;
1039
+
1042
1040
#[ test]
1043
1041
fn with_ipv4 ( ) {
1044
1042
let octets = [ 1 , 2 , 3 , 4 ] ;
0 commit comments