1
1
Wez Furlong 7a26697ede
wincng: use newer DH API for Windows 8.1+
Since Windows 1903 the approach used to perform DH kex with the CNG
API has been failing.

This commit switches to using the `DH` algorithm provider to perform
generation of the key pair and derivation of the shared secret.

It uses a feature of CNG that is not yet documented.  The sources of
information that I've found on this are:

* https://stackoverflow.com/a/56378698/149111
* 5d39011e63/mini/crypto/cng/dh.inl (L355)

With this change I am able to successfully connect from Windows 10 to my
ubuntu system.

Refs: https://github.com/alexcrichton/ssh2-rs/issues/122
Fixes: https://github.com/libssh2/libssh2/issues/388
Closes: https://github.com/libssh2/libssh2/pull/397
2020-07-06 20:46:48 +02:00
2019-03-21 09:30:41 +01:00
2016-02-24 23:44:13 +01:00
2016-03-15 21:58:26 +00:00
2019-08-02 16:38:08 -07:00
2016-08-14 16:03:25 +01:00
2019-06-20 10:47:44 -07:00
2011-04-04 13:31:33 +02:00
2016-02-24 23:44:13 +01:00
2018-08-02 14:00:25 -07:00
2011-04-04 13:31:33 +02:00
2016-02-24 23:44:13 +01:00
2019-06-19 11:11:28 -07:00

libssh2 - SSH2 library

libssh2 is a library implementing the SSH2 protocol, available under the revised BSD license.

Web site

Mailing list

BSD Licensed

Web site source code

Installation instructions:

Описание
The SSH library (BSD license)
https://www.libssh2.org
Readme 4,1 MiB
2023-03-09 23:34:13 +03:00
Languages
C 84.6%
M4 3.2%
Makefile 2.9%
Shell 2.2%
CMake 2.2%
Разное 4.7%