ssh2: update to 0.8

That version has the ability to use SSH agent forwarding.
This commit doesn't enable that functionality, it's just updating
the version and adjusting for changes in the upstream.
This commit is contained in:
Wez Furlong committed 2020-02-22 08:50:13 -08:00
1 parent 3dea5a59fc
commit 18294841e9
5 files changed
+8 -18

No files matched your search

Generated
+4 -4
View File
@@ -1350,9 +1350,9 @@ dependencies = [
[[package]]
name = "libssh2-sys"
version = "0.2.14"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36aa6e813339d3a063292b77091dfbbb6152ff9006a459895fa5bebed7d34f10"
checksum = "2b920f022ce0b459a5f27aa86c87c74510bad96f1d9169cfe1f7d2d2e7f1f10f"
dependencies = [
"cc",
"libc",
@@ -2731,9 +2731,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
name = "ssh2"
version = "0.7.1"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26c31781ff1198791fb772771bca3ec962d7243cb8cad79818b2b38be8253e3c"
checksum = "eb1a0bdfb47e1fa1eb80f67c7909cfddab49d4262025aa9e4f6e9c39ad77b482"
dependencies = [
"bitflags 1.2.1",
"libc",
+1 -1
View File
@@ -51,7 +51,7 @@ ratelimit_meter = "5.0"
rcgen = "0.7"
serde = {version="1.0", features = ["rc", "derive"]}
serial = "0.4"
ssh2 = "0.7"
ssh2 = "0.8"
structopt = "0.3"
tabout = { path = "tabout" }
term = { path = "term" }
+1 -1
View File
@@ -18,7 +18,7 @@ shell-words = "0.1"
serde_derive = {version="1.0", optional=true}
serde = {version="1.0", optional=true}
serial = "0.4"
ssh2 = {optional=true, version="0.7"}
ssh2 = {optional=true, version="0.8"}
tokio = { version = "0.2", features = ["io-driver", "io-util"] }
[features]
+1 -6
View File
@@ -271,12 +271,7 @@ impl Read for SshReader {
if inner.waiting_for_read {
self.pty.inner.read_waiters.wait(inner).ok();
} else {
let socket = inner
.session
.tcp_stream()
.as_ref()
.unwrap()
.as_socket_descriptor();
let socket = inner.session.as_socket_descriptor();
// We own waiting for read
inner.waiting_for_read = true;
+1 -6
View File
@@ -270,12 +270,7 @@ impl Read for SshStream {
impl AsPollFd for SshStream {
fn as_poll_fd(&self) -> pollfd {
self.sess
.tcp_stream()
.as_ref()
.unwrap()
.as_socket_descriptor()
.as_poll_fd()
self.sess.as_socket_descriptor().as_poll_fd()
}
}