summaryrefslogtreecommitdiff
path: root/src/key
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2019-01-19 14:21:35 -0600
committerStuart Stock <stuart@int08h.com>2019-01-19 15:12:37 -0600
commitdda66ba5b6ab2fbdee3b9fcd92741b1127f9c597 (patch)
treeb1206f0f45ddb7634b6b0c313d6f63929b98aaa7 /src/key
parent88f029137b7f519dd842ff745434ffaef4c05f82 (diff)
downloadroughenough-dda66ba5b6ab2fbdee3b9fcd92741b1127f9c597.zip
Rust 2018 edition migration
Diffstat (limited to 'src/key')
-rw-r--r--src/key/longterm.rs10
-rw-r--r--src/key/mod.rs7
-rw-r--r--src/key/online.rs8
3 files changed, 10 insertions, 15 deletions
diff --git a/src/key/longterm.rs b/src/key/longterm.rs
index ddac6ea..24337f6 100644
--- a/src/key/longterm.rs
+++ b/src/key/longterm.rs
@@ -19,11 +19,11 @@
use std::fmt;
use std::fmt::Formatter;
-use key::OnlineKey;
-use message::RtMessage;
-use sign::Signer;
-use tag::Tag;
-use CERTIFICATE_CONTEXT;
+use crate::key::OnlineKey;
+use crate::message::RtMessage;
+use crate::sign::Signer;
+use crate::tag::Tag;
+use crate::CERTIFICATE_CONTEXT;
///
/// Represents the server's long-term identity.
diff --git a/src/key/mod.rs b/src/key/mod.rs
index 634d252..f9c77ad 100644
--- a/src/key/mod.rs
+++ b/src/key/mod.rs
@@ -16,11 +16,6 @@
//! Representations and management of Roughtime's online and long-term Ed25519 keys
//!
-extern crate hex;
-extern crate log;
-extern crate ring;
-extern crate std;
-
mod longterm;
mod online;
@@ -69,7 +64,7 @@ impl FromStr for KmsProtection {
#[cfg(test)]
mod test {
- use key::KmsProtection;
+ use crate::key::KmsProtection;
use std::str::FromStr;
#[test]
diff --git a/src/key/online.rs b/src/key/online.rs
index 18c8b8f..c22db74 100644
--- a/src/key/online.rs
+++ b/src/key/online.rs
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-use message::RtMessage;
-use sign::Signer;
-use tag::Tag;
+use crate::message::RtMessage;
+use crate::sign::Signer;
+use crate::tag::Tag;
use time::Timespec;
use byteorder::{LittleEndian, WriteBytesExt};
@@ -22,7 +22,7 @@ use byteorder::{LittleEndian, WriteBytesExt};
use std::fmt;
use std::fmt::Formatter;
-use SIGNED_RESPONSE_CONTEXT;
+use crate::SIGNED_RESPONSE_CONTEXT;
///
/// Represents the delegated Roughtime ephemeral online key.