@@ -9,7 +9,7 @@ use pkcs5::pbes2::Pbkdf2Params;
9
9
10
10
#[ test]
11
11
fn cms_decode_cert_example ( ) {
12
- let enc_ci = include_bytes ! ( "../../pkcs7/ tests/examples/certData.bin" ) ;
12
+ let enc_ci = include_bytes ! ( "../tests/examples/certData.bin" ) ;
13
13
let ci = ContentInfo :: from_der ( enc_ci) . unwrap ( ) ;
14
14
assert_eq ! ( ci. content_type, const_oid:: db:: rfc5911:: ID_DATA ) ;
15
15
assert_eq ! ( ci. content. value( ) . len( ) , 781 ) ;
@@ -19,7 +19,7 @@ fn cms_decode_cert_example() {
19
19
20
20
#[ test]
21
21
fn cms_decode_encrypted_key_example ( ) {
22
- let enc_ci = include_bytes ! ( "../../pkcs7/ tests/examples/keyEncryptedData.bin" ) ;
22
+ let enc_ci = include_bytes ! ( "../tests/examples/keyEncryptedData.bin" ) ;
23
23
let ci = ContentInfo :: from_der ( enc_ci) . unwrap ( ) ;
24
24
assert_eq ! ( ci. content_type, const_oid:: db:: rfc5911:: ID_ENCRYPTED_DATA ) ;
25
25
let data = EncryptedData :: from_der ( ci. content . to_der ( ) . unwrap ( ) . as_slice ( ) ) . unwrap ( ) ;
@@ -54,8 +54,7 @@ fn cms_decode_encrypted_key_example() {
54
54
55
55
#[ test]
56
56
fn cms_decode_signed_mdm_example ( ) {
57
- let der_signed_data_in_ci =
58
- include_bytes ! ( "../../pkcs7/tests/examples/apple_mdm_signature_der.bin" ) ;
57
+ let der_signed_data_in_ci = include_bytes ! ( "../tests/examples/apple_mdm_signature_der.bin" ) ;
59
58
let ci = ContentInfo :: from_der ( der_signed_data_in_ci) . unwrap ( ) ;
60
59
assert_eq ! ( ci. content_type, const_oid:: db:: rfc5911:: ID_SIGNED_DATA ) ;
61
60
@@ -81,7 +80,7 @@ fn cms_decode_signed_mdm_example() {
81
80
82
81
#[ test]
83
82
fn cms_decode_signed_scep_example ( ) {
84
- let der_signed_data_in_ci = include_bytes ! ( "../../pkcs7/ tests/examples/scep_der.bin" ) ;
83
+ let der_signed_data_in_ci = include_bytes ! ( "../tests/examples/scep_der.bin" ) ;
85
84
let ci = ContentInfo :: from_der ( der_signed_data_in_ci) . unwrap ( ) ;
86
85
assert_eq ! ( ci. content_type, const_oid:: db:: rfc5911:: ID_SIGNED_DATA ) ;
87
86
@@ -108,7 +107,7 @@ fn cms_decode_signed_scep_example() {
108
107
109
108
#[ test]
110
109
fn cms_decode_signed_der ( ) {
111
- let der_signed_data_in_ci = include_bytes ! ( "../../pkcs7/ tests/examples/cms_der.bin" ) ;
110
+ let der_signed_data_in_ci = include_bytes ! ( "../tests/examples/cms_der.bin" ) ;
112
111
let ci = ContentInfo :: from_der ( der_signed_data_in_ci) . unwrap ( ) ;
113
112
assert_eq ! ( ci. content_type, const_oid:: db:: rfc5911:: ID_SIGNED_DATA ) ;
114
113
0 commit comments