ssh2: on windows, link against openssl

The wincng based build doesn't recognize newer keys which makes it
impossible to connect to a reasonably up to date Fedora installation.

This commit points to my branch of ssh2-rs that has some changes to
build ssh2 against the vendored openssl that is already part of
the dependency graph for wezterm.

refs: https://github.com/wez/wezterm/issues/507
This commit is contained in:
Wez Furlong committed 2021-03-26 10:00:43 -07:00
1 parent cfe6894e83
commit cdae65238a
4 files changed
+17 -16

No files matched your search

Generated
+13 -14
View File
@@ -1847,8 +1847,7 @@ dependencies = [
[[package]]
name = "libssh2-sys"
version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0186af0d8f171ae6b9c4c90ec51898bad5d08a2d5e470903a50d9ad8959cbee"
source = "git+https://github.com/wez/ssh2-rs.git?branch=win32ssl#200d08770f11a438a0f24070db2ea6db2c37c847"
dependencies = [
"cc",
"libc",
@@ -2587,12 +2586,13 @@ dependencies = [
[[package]]
name = "parking_lot"
version = "0.10.2"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e"
checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb"
dependencies = [
"lock_api 0.3.4",
"parking_lot_core 0.7.2",
"instant",
"lock_api 0.4.2",
"parking_lot_core 0.8.3",
]
[[package]]
@@ -2612,14 +2612,14 @@ dependencies = [
[[package]]
name = "parking_lot_core"
version = "0.7.2"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
checksum = "fa7a782938e745763fe6907fc6ba86946d72f49fe7e21de074e08128a99fb018"
dependencies = [
"cfg-if 0.1.10",
"cloudabi",
"cfg-if 1.0.0",
"instant",
"libc",
"redox_syscall 0.1.57",
"redox_syscall 0.2.5",
"smallvec 1.6.1",
"winapi 0.3.9",
]
@@ -3605,13 +3605,12 @@ checksum = "1fccf17fd09e2455ea796d2ad267b64fa2c5cbd8701b2a93b555d2aa73449f7d"
[[package]]
name = "ssh2"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d876d4d57f6bbf2245d43f7ec53759461f801a446d3693704aa6d27b257844d7"
source = "git+https://github.com/wez/ssh2-rs.git?branch=win32ssl#200d08770f11a438a0f24070db2ea6db2c37c847"
dependencies = [
"bitflags",
"libc",
"libssh2-sys",
"parking_lot 0.10.2",
"parking_lot 0.11.1",
]
[[package]]
+2
View File
@@ -6,3 +6,5 @@ resolver = "2"
opt-level = 3
# debug = 1
[patch.crates-io]
ssh2 = { git = "https://github.com/wez/ssh2-rs.git", branch="win32ssl" }
+1 -1
View File
@@ -25,7 +25,7 @@ rangeset = { path = "../rangeset" }
ratelim= { path = "../ratelim" }
regex = "1"
serde = {version="1.0", features = ["rc", "derive"]}
ssh2 = "0.9"
ssh2 = {version="0.9", features=["openssl-on-win32"]}
terminfo = "0.7"
termwiz = { path = "../termwiz" }
textwrap = "0.13"
+1 -1
View File
@@ -20,7 +20,7 @@ promise = { path = "../promise" }
rangeset = { path = "../rangeset" }
ratelim= { path = "../ratelim" }
smol = "1.2"
ssh2 = "0.9"
ssh2 = {version="0.9", features=["openssl-on-win32"]}
thiserror = "1.0"
url = "2"
wezterm-term = { path = "../term", features=["use_serde"] }