X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/98ba26b92452911f8f6b9cfccd134a4836218904..65a22376e5875181e41108028091018cdcd4fdae:/sshblowf.c diff --git a/sshblowf.c b/sshblowf.c index 99d83737..f3c49b89 100644 --- a/sshblowf.c +++ b/sshblowf.c @@ -507,14 +507,14 @@ static void blowfish_ssh2_decrypt_blk(unsigned char *blk, int len) blowfish_msb_decrypt_cbc(blk, len, &dctx); } -struct ssh_cipher ssh_blowfish_ssh1 = { +const struct ssh_cipher ssh_blowfish_ssh1 = { blowfish_sesskey, blowfish_ssh1_encrypt_blk, blowfish_ssh1_decrypt_blk, 8 }; -static struct ssh2_cipher ssh_blowfish_ssh2 = { +static const struct ssh2_cipher ssh_blowfish_ssh2 = { blowfish_csiv, blowfish_cskey, blowfish_sciv, blowfish_sckey, blowfish_ssh2_encrypt_blk, @@ -523,11 +523,11 @@ static struct ssh2_cipher ssh_blowfish_ssh2 = { 8, 128 }; -static struct ssh2_cipher *blowfish_list[] = { +static const struct ssh2_cipher *const blowfish_list[] = { &ssh_blowfish_ssh2 }; -struct ssh2_ciphers ssh2_blowfish = { +const struct ssh2_ciphers ssh2_blowfish = { sizeof(blowfish_list) / sizeof(*blowfish_list), blowfish_list };