]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Pass the ssh_signkey structure itself to public key methods.
authorSimon Tatham <anakin@pobox.com>
Fri, 15 May 2015 09:12:07 +0000 (10:12 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 15 May 2015 09:12:07 +0000 (10:12 +0100)
commit870ad6ab0780c68e0e71d1a14d394aa543a8b89e
tree2f9741d21029f70b770fb9fa89786161e671ee0c
parenta5fc95b715256a7db4492ccf6872788613f105c4
Pass the ssh_signkey structure itself to public key methods.

Not all of them, but the ones that don't get a 'void *key' parameter.
This means I can share methods between multiple ssh_signkey
structures, and still give those methods an easy way to find out which
public key method they're dealing with, by loading parameters from a
larger structure in which the ssh_signkey is the first element.

(In OO terms, I'm arranging that all static methods of my public key
classes get a pointer to the class vtable, to make up for not having a
pointer to the class instance.)

I haven't actually done anything with the new facility in this commit,
but it will shortly allow me to clean up the constant lookups by curve
name in the ECDSA code.
cmdgen.c
import.c
pageant.c
ssh.c
ssh.h
sshdss.c
sshecc.c
sshpubk.c
sshrsa.c