Removed libsodium specific parts

pull/29/head
Dennis Schwerdel 2019-02-19 11:43:33 +01:00
parent c43b1cc37d
commit 0dd694c708
2 changed files with 2 additions and 14 deletions

View File

@ -56,16 +56,6 @@ impl Crypto {
pub fn init() {
}
#[inline]
pub fn sodium_version() -> String {
"0".to_string()
}
#[inline]
pub fn aes256_available() -> bool {
true
}
#[inline]
pub fn method(&self) -> u8 {
match *self {

View File

@ -269,11 +269,9 @@ fn main() {
let args: Args = Docopt::new(USAGE).and_then(|d| d.deserialize()).unwrap_or_else(|e| e.exit());
if args.flag_version {
Crypto::init();
println!("VpnCloud v{}, protocol version {}, libsodium {} (AES256: {})",
println!("VpnCloud v{}, protocol version {}",
env!("CARGO_PKG_VERSION"),
VERSION,
Crypto::sodium_version(),
Crypto::aes256_available()
VERSION
);
return;
}