X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshdes.c;h=fa5d91cd75716040dfcae531bcd1b9f3713e253d;hb=8316deb3399fe1d0c406132cf2e795a76de26b64;hp=5fdb89a5b6e6707989fcc1057e4ac44b79e6258a;hpb=a03d04ba7530437271bb22fa7b8205b910d144dc;p=PuTTY.git diff --git a/sshdes.c b/sshdes.c index 5fdb89a5..fa5d91cd 100644 --- a/sshdes.c +++ b/sshdes.c @@ -956,6 +956,13 @@ static const struct ssh2_cipher ssh_des_ssh2 = { 8, 56, "single-DES" }; +static const struct ssh2_cipher ssh_des_sshcom_ssh2 = { + des_make_context, des3_free_context, des3_iv, des_key, + des_ssh2_encrypt_blk, des_ssh2_decrypt_blk, + "des-cbc@ssh.com", + 8, 56, "single-DES" +}; + static const struct ssh2_cipher *const des3_list[] = { &ssh_3des_ssh2 }; @@ -966,11 +973,12 @@ const struct ssh2_ciphers ssh2_3des = { }; static const struct ssh2_cipher *const des_list[] = { - &ssh_des_ssh2 + &ssh_des_ssh2, + &ssh_des_sshcom_ssh2 }; const struct ssh2_ciphers ssh2_des = { - sizeof(des3_list) / sizeof(*des_list), + sizeof(des_list) / sizeof(*des_list), des_list };