summaryrefslogtreecommitdiff
path: root/src/bin/roughenough-kms.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/roughenough-kms.rs')
-rw-r--r--src/bin/roughenough-kms.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/roughenough-kms.rs b/src/bin/roughenough-kms.rs
index b660488..c8d3c74 100644
--- a/src/bin/roughenough-kms.rs
+++ b/src/bin/roughenough-kms.rs
@@ -27,6 +27,8 @@ extern crate untrusted;
use clap::{App, Arg};
use roughenough::VERSION;
+
+#[allow(unused_imports)]
use roughenough::key::EnvelopeEncryption;
#[cfg(feature = "kms")]
@@ -47,6 +49,7 @@ fn aws_kms(kms_key: &str, plaintext_seed: &[u8]) {
}
}
+#[allow(unused_variables)]
pub fn main() {
use log::Level;
@@ -54,13 +57,13 @@ pub fn main() {
let matches = App::new("Roughenough key management")
.version(VERSION)
- .arg(Arg::with_name("kms-key")
+ .arg(Arg::with_name("KEY_ID")
.short("k")
.long("kms-key")
.takes_value(true)
.required(true)
.help("Identity of the KMS key to be used"))
- .arg(Arg::with_name("seed")
+ .arg(Arg::with_name("SEED")
.short("s")
.long("seed")
.takes_value(true)
@@ -68,8 +71,8 @@ pub fn main() {
.help("Seed for the server's long-term identity"))
.get_matches();
- let kms_key = matches.value_of("kms-key").unwrap();
- let plaintext_seed = matches.value_of("seed")
+ let kms_key = matches.value_of("KEY_ID").unwrap();
+ let plaintext_seed = matches.value_of("SEED")
.map(|seed| hex::decode(seed).expect("Error parsing seed value"))
.unwrap();