summaryrefslogtreecommitdiff
path: root/openssl/src/sign.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/sign.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/sign.rs')
-rw-r--r--openssl/src/sign.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs
index 5678d9d6..72438b6b 100644
--- a/openssl/src/sign.rs
+++ b/openssl/src/sign.rs
@@ -68,11 +68,11 @@ use std::io::{self, Write};
use std::marker::PhantomData;
use std::ptr;
-use error::ErrorStack;
-use hash::MessageDigest;
-use pkey::{HasPrivate, HasPublic, PKeyRef};
-use rsa::Padding;
-use {cvt, cvt_p};
+use crate::error::ErrorStack;
+use crate::hash::MessageDigest;
+use crate::pkey::{HasPrivate, HasPublic, PKeyRef};
+use crate::rsa::Padding;
+use crate::{cvt, cvt_p};
cfg_if! {
if #[cfg(ossl110)] {
@@ -639,12 +639,12 @@ mod test {
use hex::{self, FromHex};
use std::iter;
- use ec::{EcGroup, EcKey};
- use hash::MessageDigest;
- use nid::Nid;
- use pkey::PKey;
- use rsa::{Padding, Rsa};
- use sign::{RsaPssSaltlen, Signer, Verifier};
+ use crate::ec::{EcGroup, EcKey};
+ use crate::hash::MessageDigest;
+ use crate::nid::Nid;
+ use crate::pkey::PKey;
+ use crate::rsa::{Padding, Rsa};
+ use crate::sign::{RsaPssSaltlen, Signer, Verifier};
const INPUT: &str =
"65794a68624763694f694a53557a49314e694a392e65794a7063334d694f694a71623255694c41304b49434a6c\
@@ -802,7 +802,7 @@ mod test {
#[test]
#[cfg(ossl110)]
fn test_cmac() {
- let cipher = ::symm::Cipher::aes_128_cbc();
+ let cipher = crate::symm::Cipher::aes_128_cbc();
let key = Vec::from_hex("9294727a3638bb1c13f48ef8158bfc9d").unwrap();
let pkey = PKey::cmac(&cipher, &key).unwrap();
let mut signer = Signer::new_without_digest(&pkey).unwrap();