diff --git a/src/crypto.rs b/src/crypto.rs index 0949eb8..5781c69 100644 --- a/src/crypto.rs +++ b/src/crypto.rs @@ -35,7 +35,7 @@ const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE: usize = 524288; #[allow(non_upper_case_globals)] const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE: usize = 16777216; -struct Aes256State(*mut [u8; crypto_aead_aes256gcm_STATEBYTES]); +pub struct Aes256State(*mut [u8; crypto_aead_aes256gcm_STATEBYTES]); impl Aes256State { fn new() -> Aes256State { diff --git a/src/main.rs b/src/main.rs index 6ad7fc3..4313c9d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ use std::process::Command; use device::Device; use ethernet::SwitchTable; use ip::RoutingTable; -use types::{Error, Mode, Type, Range, Table, Protocol}; +use types::{Mode, Type, Range, Table, Protocol}; use cloud::GenericCloud; use udpmessage::VERSION; use crypto::{Crypto, CryptoMethod};