X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/98ba26b92452911f8f6b9cfccd134a4836218904..65a22376e5875181e41108028091018cdcd4fdae:/sshdes.c diff --git a/sshdes.c b/sshdes.c index 491c9067..1665b3d6 100644 --- a/sshdes.c +++ b/sshdes.c @@ -790,7 +790,7 @@ void des3_encrypt_pubkey(unsigned char *key, des_3cbc_encrypt(blk, blk, len, ourkeys); } -static struct ssh2_cipher ssh_3des_ssh2 = { +static const struct ssh2_cipher ssh_3des_ssh2 = { des3_csiv, des3_cskey, des3_sciv, des3_sckey, des3_ssh2_encrypt_blk, @@ -799,16 +799,16 @@ static struct ssh2_cipher ssh_3des_ssh2 = { 8, 168 }; -static struct ssh2_cipher *des3_list[] = { +static const struct ssh2_cipher *const des3_list[] = { &ssh_3des_ssh2 }; -struct ssh2_ciphers ssh2_3des = { +const struct ssh2_ciphers ssh2_3des = { sizeof(des3_list) / sizeof(*des3_list), des3_list }; -struct ssh_cipher ssh_3des = { +const struct ssh_cipher ssh_3des = { des3_sesskey, des3_encrypt_blk, des3_decrypt_blk, @@ -829,7 +829,7 @@ static void des_decrypt_blk(unsigned char *blk, int len) { des_cbc_decrypt(blk, blk, len, cskeys); } -struct ssh_cipher ssh_des = { +const struct ssh_cipher ssh_des = { des_sesskey, des_encrypt_blk, des_decrypt_blk,