X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshdh.c;h=f0abd3eca311131a57654fd1b35a1608179374e7;hb=12e019bafc75cb441e965c63e15dfceeaf71ca1e;hp=8d98462590753d753e6241cdb1f4953c3e638361;hpb=a42d103cf91378a36d0a6aea8e00184f632abd80;p=PuTTY.git diff --git a/sshdh.c b/sshdh.c index 8d984625..f0abd3ec 100644 --- a/sshdh.c +++ b/sshdh.c @@ -1,3 +1,7 @@ +/* + * Diffie-Hellman implementation for PuTTY. + */ + #include "ssh.h" /* @@ -74,12 +78,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 };