summaryrefslogtreecommitdiff
path: root/src/bin/roughenough-server.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-10-06 22:40:12 -0500
committerStuart Stock <stuart@int08h.com>2018-10-07 15:48:23 -0500
commit0b924cc92418f9a210a6b78cef56e427dc9c9d1d (patch)
treea7bb33d3a344d973684e6f0de3e35f956de803db /src/bin/roughenough-server.rs
parentb43bcb27ad303afd56cfe1d767e95c10cf3d1cb2 (diff)
downloadroughenough-0b924cc92418f9a210a6b78cef56e427dc9c9d1d.zip
Land KMS support, yay!
AWS KMS for now, work-in-progress
Diffstat (limited to 'src/bin/roughenough-server.rs')
-rw-r--r--src/bin/roughenough-server.rs15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/bin/roughenough-server.rs b/src/bin/roughenough-server.rs
index 13a7026..34e8b90 100644
--- a/src/bin/roughenough-server.rs
+++ b/src/bin/roughenough-server.rs
@@ -55,7 +55,7 @@ use byteorder::{LittleEndian, WriteBytesExt};
use roughenough::config;
use roughenough::config::ServerConfig;
-use roughenough::keys::{LongTermKey, OnlineKey};
+use roughenough::key::{LongTermKey, OnlineKey};
use roughenough::merkle::MerkleTree;
use roughenough::{Error, RtMessage, Tag};
use roughenough::{MIN_REQUEST_LENGTH, VERSION};
@@ -256,7 +256,7 @@ pub fn main() {
Err(e) => {
error!("{:?}", e);
process::exit(1)
- },
+ }
Ok(ref cfg) if !config::is_valid_config(&cfg) => process::exit(1),
Ok(cfg) => cfg,
};
@@ -268,8 +268,15 @@ pub fn main() {
info!("Long-term public key : {}", long_term_key);
info!("Online public key : {}", online_key);
info!("Max response batch size : {}", config.batch_size());
- info!("Status updates every : {} seconds", config.status_interval().as_secs());
- info!("Server listening on : {}:{}", config.interface(), config.port());
+ info!(
+ "Status updates every : {} seconds",
+ config.status_interval().as_secs()
+ );
+ info!(
+ "Server listening on : {}:{}",
+ config.interface(),
+ config.port()
+ );
polling_loop(&config, &mut online_key, &cert_bytes);