]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Ifdef out the actual code supporting 3des-ctr and blowfish-ctr, since GCC
authorBen Harris <bjh21@bjh21.me.uk>
Wed, 20 Apr 2005 22:52:54 +0000 (22:52 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 20 Apr 2005 22:52:54 +0000 (22:52 +0000)
now notices that it isn't used.

[originally from svn r5652]

sshblowf.c
sshdes.c

index 60835b3eb9ea11d01b9cc66fb8448f17994429a4..a264c3c542dd7ae2f67b7e6ad56178c0d5d98634 100644 (file)
@@ -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)
index 78bb8d7fd181360e2c56604df7d181aee6b989f8..034176ab33abacb19c28f3a42bf0127e6597dc76 100644 (file)
--- a/sshdes.c
+++ b/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)
 {