|
1 | 1 | use cmpv2::status::PkiStatusInfo; |
2 | | -use cms::{ |
3 | | - cert::x509::{ |
4 | | - ext::{pkix::name::GeneralName, Extensions}, |
5 | | - spki::AlgorithmIdentifier, |
6 | | - }, |
7 | | - content_info::ContentInfo, |
8 | | -}; |
| 2 | +use cms::content_info::ContentInfo; |
9 | 3 | use der::{ |
10 | 4 | asn1::{GeneralizedTime, Int, OctetString}, |
11 | 5 | oid::ObjectIdentifier, |
12 | 6 | Any, Enumerated, Sequence, |
13 | 7 | }; |
| 8 | +use x509_cert::{ |
| 9 | + ext::{pkix::name::GeneralName, Extensions}, |
| 10 | + spki::AlgorithmIdentifier, |
| 11 | +}; |
14 | 12 |
|
15 | 13 | #[derive(Clone, Copy, Debug, Enumerated, Eq, PartialEq, PartialOrd, Ord)] |
16 | 14 | #[asn1(type = "INTEGER")] |
@@ -214,10 +212,7 @@ mod tests { |
214 | 212 | GeneralName::DirectoryName(n) => n, |
215 | 213 | _ => panic!(), |
216 | 214 | }; |
217 | | - assert_eq!( |
218 | | - dn.to_string(), |
219 | | - "C=US,STATEORPROVINCENAME=Some-State,O=Test,CN=Test TSA" |
220 | | - ); |
| 215 | + assert_eq!(dn.to_string(), "CN=Test TSA,O=Test,ST=Some-State,C=US"); |
221 | 216 | assert_eq!( |
222 | 217 | tst.message_imprint.hashed_message.as_bytes(), |
223 | 218 | hex!("ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad") |
|
0 commit comments