Repository: alexcrichton/ssh2-rs (language: rust)

Issue:
Update libssh2 to version `1.11.0`
The `1.11.0` release of libssh2 supports encrypt-then-mac (ETM) MACs which are generally considered safer. Non-etm MACs are not supported anymore by the default sshd config in NixOS since https://github.com/NixOS/nixpkgs/pull/231165. 


Discussion / hints:

Fix patch:
diff --git a/.mailmap b/.mailmap
new file mode 100644
index 00000000..75ba0af9
--- /dev/null
+++ b/.mailmap
@@ -0,0 +1,1 @@
+<ga29smith@gmail.com> <gabriel.smith@precisionot.com>
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs
index 5c9944d3..c4425ee3 100644
--- a/libssh2-sys/build.rs
+++ b/libssh2-sys/build.rs
@@ -66,7 +66,9 @@ fn main() {
     cfg.file("libssh2/src/agent.c")
         .file("libssh2/src/bcrypt_pbkdf.c")
         .file("libssh2/src/blowfish.c")
+        .file("libssh2/src/chacha.c")
         .file("libssh2/src/channel.c")
+        .file("libssh2/src/cipher-chachapoly.c")
         .file("libssh2/src/comp.c")
         .file("libssh2/src/crypt.c")
         .file("libssh2/src/crypto.c")
@@ -79,6 +81,7 @@ fn main() {
         .file("libssh2/src/misc.c")
         .file("libssh2/src/packet.c")
         .file("libssh2/src/pem.c")
+        .file("libssh2/src/poly1305.c")
         .file("libssh2/src/publickey.c")
         .file("libssh2/src/scp.c")
         .file("libssh2/src/session.c")
diff --git a/libssh2-sys/libssh2 b/libssh2-sys/libssh2
index 1c3f1b7d..a312b433 160000
--- a/libssh2-sys/libssh2
+++ b/libssh2-sys/libssh2
@@ -1,1 +1,1 @@
-Subproject commit 1c3f1b7da588f2652260285529ec3c1f1125eb4e
+Subproject commit a312b43325e3383c865a87bb1d26cb52e3292641


Test patch: