mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Ifdef out the actual code supporting 3des-ctr and blowfish-ctr, since GCC
now notices that it isn't used. [originally from svn r5652]
This commit is contained in:
parent
5079fcc182
commit
2e761fefaf
@ -389,6 +389,7 @@ static void blowfish_msb_decrypt_cbc(unsigned char *blk, int len,
|
||||
ctx->iv1 = iv1;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_BLOWFISH_SSH2_CTR
|
||||
static void blowfish_msb_sdctr(unsigned char *blk, int len,
|
||||
BlowfishContext * ctx)
|
||||
{
|
||||
@ -414,6 +415,7 @@ static void blowfish_msb_sdctr(unsigned char *blk, int len,
|
||||
ctx->iv0 = iv0;
|
||||
ctx->iv1 = iv1;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void blowfish_setkey(BlowfishContext * ctx,
|
||||
const unsigned char *key, short keybytes)
|
||||
|
4
sshdes.c
4
sshdes.c
@ -732,6 +732,7 @@ static void des_cbc3_decrypt(unsigned char *dest, const unsigned char *src,
|
||||
scheds->iv1 = iv1;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_3DES_SSH2_CTR
|
||||
static void des_sdctr3(unsigned char *dest, const unsigned char *src,
|
||||
unsigned int len, DESContext * scheds)
|
||||
{
|
||||
@ -760,6 +761,7 @@ static void des_sdctr3(unsigned char *dest, const unsigned char *src,
|
||||
scheds->iv0 = iv0;
|
||||
scheds->iv1 = iv1;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void *des3_make_context(void)
|
||||
{
|
||||
@ -844,11 +846,13 @@ static void des3_ssh2_decrypt_blk(void *handle, unsigned char *blk, int len)
|
||||
des_cbc3_decrypt(blk, blk, len, keys);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_3DES_SSH2_CTR
|
||||
static void des3_ssh2_sdctr(void *handle, unsigned char *blk, int len)
|
||||
{
|
||||
DESContext *keys = (DESContext *) handle;
|
||||
des_sdctr3(blk, blk, len, keys);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void des_ssh2_encrypt_blk(void *handle, unsigned char *blk, int len)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user