summaryrefslogtreecommitdiff
path: root/libssh2-sys
diff options
context:
space:
mode:
authorBrian Olsen <brian@maven-group.org>2019-01-02 17:55:25 +0100
committerAlex Crichton <alex@alexcrichton.com>2019-01-02 10:55:25 -0600
commitd14b02e020cbed9d8721a137995e9abb73cbf3f1 (patch)
tree3c8860497b8234849bfd69c104c80fc7d43b1410 /libssh2-sys
parent415b5ba56f08923560d2bf9c874e70de719576e2 (diff)
downloadssh2-rs-d14b02e020cbed9d8721a137995e9abb73cbf3f1.zip
Define LIBSSH2_DH_GEX_NEW to avoid KEX error (#100)
When LIBSSH2_DH_GEX_NEW is not defined LIBSSH2 will use an old diffie-hellman-group-exchange-sha1 syntax that has been removed from newer versions of OpenSSH.
Diffstat (limited to 'libssh2-sys')
-rw-r--r--libssh2-sys/build.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs
index baff239..896ad58 100644
--- a/libssh2-sys/build.rs
+++ b/libssh2-sys/build.rs
@@ -105,6 +105,8 @@ fn main() {
fs::write(build.join("libssh2_config.h"), &config).unwrap();
cfg.include(&build);
}
+ /* Enable newer diffie-hellman-group-exchange-sha1 syntax */
+ cfg.define("LIBSSH2_DH_GEX_NEW", None);
cfg.define("LIBSSH2_HAVE_ZLIB", None);
if let Some(path) = env::var_os("DEP_Z_INCLUDE") {