mirror of https://github.com/dswd/vpncloud.git
Removed libsodium specific parts
This commit is contained in:
parent
c43b1cc37d
commit
0dd694c708
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue