1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Recent CTR mode changes stopped OS X PuTTY from compiling, because

-Werror objects at various static data items being defined but not
used. Ifdef some things out to restore warning-free compilability.

[originally from svn r5640]
This commit is contained in:
Simon Tatham
2005-04-18 10:01:57 +00:00
parent 40dd62b5e2
commit 208213117a
2 changed files with 14 additions and 2 deletions

View File

@ -964,12 +964,14 @@ static const struct ssh2_cipher ssh_3des_ssh2 = {
8, 168, "triple-DES CBC"
};
#ifndef ENABLE_3DES_SSH2_CTR
static const struct ssh2_cipher ssh_3des_ssh2_ctr = {
des3_make_context, des3_free_context, des3_iv, des3_key,
des3_ssh2_sdctr, des3_ssh2_sdctr,
"3des-ctr",
8, 168, "triple-DES SDCTR"
};
#endif
/*
* Single DES in SSH-2. "des-cbc" is marked as HISTORIC in
@ -1000,7 +1002,9 @@ static const struct ssh2_cipher ssh_des_sshcom_ssh2 = {
* builds.
*/
static const struct ssh2_cipher *const des3_list[] = {
/* &ssh_3des_ssh2_ctr, */
#ifndef ENABLE_3DES_SSH2_CTR
&ssh_3des_ssh2_ctr,
#endif
&ssh_3des_ssh2
};