X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/5e8358ad8127c0ffc2010ddfed3a5258ba24704d..0a3f1d48f7f8779690073685f057bc5705d61006:/sshblowf.c diff --git a/sshblowf.c b/sshblowf.c index dc507ca5..99d83737 100644 --- a/sshblowf.c +++ b/sshblowf.c @@ -509,20 +509,25 @@ static void blowfish_ssh2_decrypt_blk(unsigned char *blk, int len) struct ssh_cipher ssh_blowfish_ssh1 = { blowfish_sesskey, - blowfish_csiv, blowfish_cskey, - blowfish_sciv, blowfish_sckey, blowfish_ssh1_encrypt_blk, blowfish_ssh1_decrypt_blk, - "blowfish-cbc", 8 }; -struct ssh_cipher ssh_blowfish_ssh2 = { - blowfish_sesskey, +static struct ssh2_cipher ssh_blowfish_ssh2 = { blowfish_csiv, blowfish_cskey, blowfish_sciv, blowfish_sckey, blowfish_ssh2_encrypt_blk, blowfish_ssh2_decrypt_blk, "blowfish-cbc", - 8 + 8, 128 +}; + +static struct ssh2_cipher *blowfish_list[] = { + &ssh_blowfish_ssh2 +}; + +struct ssh2_ciphers ssh2_blowfish = { + sizeof(blowfish_list) / sizeof(*blowfish_list), + blowfish_list };