summaryrefslogtreecommitdiff
path: root/openssl/src/cms.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/cms.rs')
-rw-r--r--openssl/src/cms.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/openssl/src/cms.rs b/openssl/src/cms.rs
index 1777aa00..f02add1d 100644
--- a/openssl/src/cms.rs
+++ b/openssl/src/cms.rs
@@ -289,12 +289,12 @@ mod test {
let encrypted_der = encrypt.to_der().expect("failed to create der from cms");
let decrypt =
CmsContentInfo::from_der(&encrypted_der).expect("failed read cms from der");
-
+
let decrypt_with_cert_check = decrypt
.decrypt(&priv_cert.pkey, &priv_cert.cert)
.expect("failed to decrypt cms");
- let decrypt_with_cert_check =
- String::from_utf8(decrypt_with_cert_check).expect("failed to create string from cms content");
+ let decrypt_with_cert_check = String::from_utf8(decrypt_with_cert_check)
+ .expect("failed to create string from cms content");
let decrypt_without_cert_check = decrypt
.decrypt_without_cert_check(&priv_cert.pkey)
@@ -311,13 +311,13 @@ mod test {
let encrypted_pem = encrypt.to_pem().expect("failed to create pem from cms");
let decrypt =
CmsContentInfo::from_pem(&encrypted_pem).expect("failed read cms from pem");
-
+
let decrypt_with_cert_check = decrypt
.decrypt(&priv_cert.pkey, &priv_cert.cert)
.expect("failed to decrypt cms");
let decrypt_with_cert_check = String::from_utf8(decrypt_with_cert_check)
.expect("failed to create string from cms content");
-
+
let decrypt_without_cert_check = decrypt
.decrypt_without_cert_check(&priv_cert.pkey)
.expect("failed to decrypt cms");