]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshdh.c
Add ability for ssh2_userkey_loadpub() to return the key comment.
[PuTTY.git] / sshdh.c
diff --git a/sshdh.c b/sshdh.c
index 8d98462590753d753e6241cdb1f4953c3e638361..48f277a7cf31eaf02a2a34f5a6f8ebce7b22d5ee 100644 (file)
--- a/sshdh.c
+++ b/sshdh.c
@@ -74,12 +74,18 @@ const struct ssh_kexes ssh_diffiehellman_group14 = {
     group14_list
 };
 
+static const struct ssh_kex ssh_diffiehellman_gex_sha256 = {
+    "diffie-hellman-group-exchange-sha256", NULL,
+    NULL, NULL, 0, 0, &ssh_sha256
+};
+
 static const struct ssh_kex ssh_diffiehellman_gex_sha1 = {
     "diffie-hellman-group-exchange-sha1", NULL,
     NULL, NULL, 0, 0, &ssh_sha1
 };
 
 static const struct ssh_kex *const gex_list[] = {
+    &ssh_diffiehellman_gex_sha256,
     &ssh_diffiehellman_gex_sha1
 };