]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Provide an 'extra' pointer in ssh_signkey and ssh_kex.
authorSimon Tatham <anakin@pobox.com>
Fri, 15 May 2015 09:12:08 +0000 (10:12 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 15 May 2015 09:12:08 +0000 (10:12 +0100)
commit1293334ebf50805a3e150d8808f7013bdcf8f1b3
treecebc061cbcadada12da24fa8edf9732487eb1709
parent870ad6ab0780c68e0e71d1a14d394aa543a8b89e
Provide an 'extra' pointer in ssh_signkey and ssh_kex.

This gives families of public key and kex functions (by which I mean
those sharing a set of methods) a place to store parameters that allow
the methods to vary depending on which exact algorithm is in use.

The ssh_kex structure already had a set of parameters specific to
Diffie-Hellman key exchange; I've moved those into sshdh.c and made
them part of the 'extra' structure for that family only, so that
unrelated kex methods don't have to faff about saying NULL,NULL,0,0.
(This required me to write an extra accessor function for ssh.c to ask
whether a DH method was group-exchange style or fixed-group style, but
that doesn't seem too silly.)
ssh.c
ssh.h
sshdh.c
sshdss.c
sshecc.c
sshrsa.c