mirror of https://github.com/dswd/vpncloud.git
Compare commits
3 Commits
ced095a7b0
...
dec23b79c8
Author | SHA1 | Date |
---|---|---|
Dennis Schwerdel | dec23b79c8 | |
Dennis Schwerdel | 8e678271af | |
Dennis Schwerdel | d2b6eb84cc |
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
This project follows [semantic versioning](http://semver.org).
|
This project follows [semantic versioning](http://semver.org).
|
||||||
|
|
||||||
|
### v0.9.1 (2019-02-16)
|
||||||
|
|
||||||
|
-[fixed] Fixed bug in new hex secret key functionality
|
||||||
|
|
||||||
### v0.9.0 (2019-02-15)
|
### v0.9.0 (2019-02-15)
|
||||||
|
|
||||||
- [added] Added support for cross-compilation
|
- [added] Added support for cross-compilation
|
||||||
|
|
|
@ -622,7 +622,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "vpncloud"
|
name = "vpncloud"
|
||||||
version = "0.9.0"
|
version = "0.9.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cc 1.0.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cc 1.0.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "vpncloud"
|
name = "vpncloud"
|
||||||
version = "0.9.0"
|
version = "0.9.1"
|
||||||
authors = ["Dennis Schwerdel <schwerdel@googlemail.com>"]
|
authors = ["Dennis Schwerdel <schwerdel@googlemail.com>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
vpncloud (0.9.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* [fixed] Fixed bug in new hex secret key functionality
|
||||||
|
|
||||||
|
-- Dennis Schwerdel <schwerdel@googlemail.com> Sat, 16 Jan 2019 15:21:32 +0100
|
||||||
|
|
||||||
vpncloud (0.9.0) stable; urgency=medium
|
vpncloud (0.9.0) stable; urgency=medium
|
||||||
|
|
||||||
* [added] Added support for cross-compilation
|
* [added] Added support for cross-compilation
|
||||||
|
|
|
@ -4,9 +4,9 @@ Before=systemd-user-sessions.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/usr/bin/vpncloud --config /etc/vpncloud/%i.net --daemon --log-file /var/log/vpncloud-%i.log --stats-file /var/log/vpncloud-%i.stats --pid-file /run/vpncloud-%i.run
|
ExecStart=/usr/bin/vpncloud --config /etc/vpncloud/%i.net --daemon --log-file /var/log/vpncloud-%i.log --stats-file /var/log/vpncloud-%i.stats --pid-file /run/vpncloud-%i.pid
|
||||||
WorkingDirectory=/etc/vpncloud
|
WorkingDirectory=/etc/vpncloud
|
||||||
PIDFile=/run/vpncloud-%i.run
|
PIDFile=/run/vpncloud-%i.pid
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -107,7 +107,7 @@ impl Crypto {
|
||||||
fail!("Raw secret key must be exactly {} bytes long", algo.key_len());
|
fail!("Raw secret key must be exactly {} bytes long", algo.key_len());
|
||||||
}
|
}
|
||||||
for i in 0..algo.key_len() {
|
for i in 0..algo.key_len() {
|
||||||
key[i] = try_fail!(u8::from_str_radix(&password[2*i..2*i+1], 16), "Failed to parse raw secret key: {}");
|
key[i] = try_fail!(u8::from_str_radix(&password[2*i..=2*i+1], 16), "Failed to parse raw secret key: {}");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let password = if password.starts_with(HASH_PREFIX) {
|
let password = if password.starts_with(HASH_PREFIX) {
|
||||||
|
|
Loading…
Reference in New Issue