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.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/openssl/src/cms.rs b/openssl/src/cms.rs
index 8c5efd64..a925b7c4 100644
--- a/openssl/src/cms.rs
+++ b/openssl/src/cms.rs
@@ -5,18 +5,18 @@
//! generated from a `Vec` of bytes. This `Vec` follows the smime protocol standards.
//! Data accepted by this module will be smime type `enveloped-data`.
-use ffi;
+use bitflags::bitflags;
use foreign_types::{ForeignType, ForeignTypeRef};
+use libc::c_uint;
use std::ptr;
-use bio::{MemBio, MemBioSlice};
-use error::ErrorStack;
-use libc::c_uint;
-use pkey::{HasPrivate, PKeyRef};
-use stack::StackRef;
-use symm::Cipher;
-use x509::{X509Ref, X509};
-use {cvt, cvt_p};
+use crate::bio::{MemBio, MemBioSlice};
+use crate::error::ErrorStack;
+use crate::pkey::{HasPrivate, PKeyRef};
+use crate::stack::StackRef;
+use crate::symm::Cipher;
+use crate::x509::{X509Ref, X509};
+use crate::{cvt, cvt_p};
bitflags! {
pub struct CMSOptions : c_uint {
@@ -224,9 +224,9 @@ impl CmsContentInfo {
#[cfg(test)]
mod test {
use super::*;
- use pkcs12::Pkcs12;
- use stack::Stack;
- use x509::X509;
+ use crate::pkcs12::Pkcs12;
+ use crate::stack::Stack;
+ use crate::x509::X509;
#[test]
fn cms_encrypt_decrypt() {