summaryrefslogtreecommitdiff
path: root/openssl/src/cms.rs
diff options
context:
space:
mode:
authorJonas Platte <jplatte+git@posteo.de>2020-12-31 19:56:30 +0100
committerJonas Platte <jplatte+git@posteo.de>2021-01-01 04:11:43 +0100
commit3d2ac91667be6fcb36961de3a9744ebb2914f044 (patch)
treea9ab8f1a1bdf3b408621e6dce386cc255fe3e82e /openssl/src/cms.rs
parentd68077d2d581fd11b19ae433703dd0106f5aa0c7 (diff)
downloadrust-openssl-3d2ac91667be6fcb36961de3a9744ebb2914f044.zip
Use crate in imports in the openssl crate
This was mostly automated using `cargo fix --edition`, except imports of openssl_sys (renamed to ffi) were converted to crate::ffi, which was reverted. The same thing is not done for the openssl-sys crate because this breaks ctest (used in systest to verify the -sys crate), see https://github.com/gnzlbg/ctest/issues/70
Diffstat (limited to 'openssl/src/cms.rs')
-rw-r--r--openssl/src/cms.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/openssl/src/cms.rs b/openssl/src/cms.rs
index 8c5efd64..154fcbf0 100644
--- a/openssl/src/cms.rs
+++ b/openssl/src/cms.rs
@@ -9,14 +9,14 @@ use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use std::ptr;
-use bio::{MemBio, MemBioSlice};
-use error::ErrorStack;
+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};
use libc::c_uint;
-use pkey::{HasPrivate, PKeyRef};
-use stack::StackRef;
-use symm::Cipher;
-use x509::{X509Ref, X509};
-use {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() {