mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 18:17:32 -05:00
Turn SSH-2 ciphers into a classoid.
This is more or less the same job as the SSH-1 case, only more extensive, because we have a wider range of ciphers. I'm a bit disappointed about the AES case, in particular, because I feel as if it ought to have been possible to arrange to combine this layer of vtable dispatch with the subsidiary one that selects between hardware and software implementations of the underlying cipher. I may come back later and have another try at that, in fact.
This commit is contained in:
4
ssh.c
4
ssh.c
@ -4850,7 +4850,7 @@ struct kexinit_algorithm {
|
||||
int warn;
|
||||
} hk;
|
||||
struct {
|
||||
const struct ssh2_cipher *cipher;
|
||||
const struct ssh2_cipheralg *cipher;
|
||||
int warn;
|
||||
} cipher;
|
||||
struct {
|
||||
@ -5026,7 +5026,7 @@ static void do_ssh2_transport(void *vctx)
|
||||
const struct ssh_mac *const *maclist;
|
||||
int nmacs;
|
||||
struct {
|
||||
const struct ssh2_cipher *cipher;
|
||||
const struct ssh2_cipheralg *cipher;
|
||||
const struct ssh_mac *mac;
|
||||
int etm_mode;
|
||||
const struct ssh_compress *comp;
|
||||
|
Reference in New Issue
Block a user