wezterm-ssh: fix occasional segv on libssh shutdown

The shutdown is due to an openssl race condition:
refs: https://github.com/openssl/openssl/issues/6214

which is worked around by explicitly telling it not
to shutdown at process exit in:
refs: https://github.com/sfackler/rust-openssl/pull/1324

The mitigation is in the updated libssh crate, so bump it
to pull it in.

This makes `cargo nextest run` run clean for me on linux.
This commit is contained in:
Wez Furlong committed 2023-03-23 13:44:00 -07:00
1 parent a9baa45157
commit f56069e279
2 files changed
+5 -4

No files matched your search

Generated
+4 -3
View File
@@ -2601,18 +2601,19 @@ dependencies = [
[[package]]
name = "libssh-rs"
version = "0.1.5"
source = "git+https://github.com/wez/libssh-rs.git#c48876e7027d3c21747a283be631177aad533eff"
version = "0.1.7"
source = "git+https://github.com/wez/libssh-rs.git#44a08196acd1a2277ec7ebce2a47618775f3c59c"
dependencies = [
"bitflags 1.3.2",
"libssh-rs-sys",
"openssl-sys",
"thiserror",
]
[[package]]
name = "libssh-rs-sys"
version = "0.1.3"
source = "git+https://github.com/wez/libssh-rs.git#c48876e7027d3c21747a283be631177aad533eff"
source = "git+https://github.com/wez/libssh-rs.git#44a08196acd1a2277ec7ebce2a47618775f3c59c"
dependencies = [
"cc",
"libz-sys",
+1 -1
View File
@@ -31,7 +31,7 @@ portable-pty = { version="0.8", path = "../pty" }
regex = "1"
smol = "1.2"
ssh2 = {version="0.9.3", features=["openssl-on-win32"], optional = true}
libssh-rs = {version="0.1.5", features=["vendored"], git="https://github.com/wez/libssh-rs.git", optional = true}
libssh-rs = {version="0.1.7", features=["vendored"], git="https://github.com/wez/libssh-rs.git", optional = true}
#libssh-rs = {path="../../libssh-rs/libssh-rs", features=["vendored"], optional = true}
thiserror = "1.0"
socket2 = "0.5"