]> git.lizzy.rs Git - PAKEs.git/commitdiff
srp: fix to work with edition-2018
authorBrian Warner <warner@lothar.com>
Thu, 6 Dec 2018 19:57:53 +0000 (11:57 -0800)
committerBrian Warner <warner@lothar.com>
Thu, 6 Dec 2018 23:00:26 +0000 (15:00 -0800)
srp/src/client.rs
srp/src/groups.rs
srp/src/server.rs
srp/src/types.rs

index 57c29c8f3c6b43a72282f527af21247c79cb535c..6cc1d7f78514c2bc682418c6f7b5f38daf2e3daa 100644 (file)
@@ -62,8 +62,8 @@ use digest::Digest;
 use generic_array::GenericArray;
 use num::{BigUint, Zero};
 
-use tools::powm;
-use types::{SrpAuthError, SrpGroup};
+use crate::tools::powm;
+use crate::types::{SrpAuthError, SrpGroup};
 
 /// SRP client state before handshake with the server.
 pub struct SrpClient<'a, D: Digest> {
index 90b52098270adf47cd91cfe896b1e5a688da3564..3438c42b60821b1f5b4873bcaf68ad76083d8762 100644 (file)
@@ -3,8 +3,8 @@
 //! It is strongly recommended to use them instead of custom generated
 //! groups. Additionally it is not recommended to use `G_1024` and `G_1536`,
 //! they are provided only for compatibility with the legacy software.
+use crate::types::SrpGroup;
 use num::BigUint;
-use types::SrpGroup;
 
 lazy_static! {
     pub static ref G_1024: SrpGroup = SrpGroup {
index 52e9c38ed4a6b3c704795ec5f34f7705b08985bb..3946949c25c2869b5a34af0588e9ef2a6977504c 100644 (file)
@@ -40,8 +40,8 @@ use digest::Digest;
 use generic_array::GenericArray;
 use num::{BigUint, Zero};
 
-use tools::powm;
-use types::{SrpAuthError, SrpGroup};
+use crate::tools::powm;
+use crate::types::{SrpAuthError, SrpGroup};
 
 /// Data provided by users upon registration, usually stored in the database.
 pub struct UserRecord<'a> {
index e2048a3575f6bcf74767abb48bb4cac0e6b1ddf3..df5a6e8eebe561385a863da0216cc74ba8000da4 100644 (file)
@@ -1,8 +1,8 @@
 //! Additional SRP types.
+use crate::tools::powm;
 use digest::Digest;
 use num::BigUint;
 use std::{error, fmt};
-use tools::powm;
 
 /// SRP authentification error.
 #[derive(Debug, Copy, Clone, Eq, PartialEq)]
@@ -53,7 +53,7 @@ impl SrpGroup {
 
 #[cfg(test)]
 mod tests {
-    use groups::G_1024;
+    use crate::groups::G_1024;
     use sha1::Sha1;
 
     #[test]