File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 2424 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2525 */
2626
27+ #ifdef WINDOWS
28+ // these should be in the same order as upstream, without the ones we don't support
29+ #define KEX_SERVER_KEX \
30+ "curve25519-sha256," \
31+ "curve25519-sha256@libssh.org," \
32+ "ecdh-sha2-nistp256," \
33+ "ecdh-sha2-nistp384," \
34+ "ecdh-sha2-nistp521," \
35+ "diffie-hellman-group-exchange-sha256," \
36+ "diffie-hellman-group16-sha512," \
37+ "diffie-hellman-group18-sha512," \
38+ "diffie-hellman-group14-sha256"
39+ #else
2740#define KEX_SERVER_KEX \
2841 "sntrup761x25519-sha512@openssh.com," \
2942 "curve25519-sha256," \
3548 "diffie-hellman-group16-sha512," \
3649 "diffie-hellman-group18-sha512," \
3750 "diffie-hellman-group14-sha256"
51+ #endif
3852
3953#define KEX_CLIENT_KEX KEX_SERVER_KEX
4054
You can’t perform that action at this time.
0 commit comments