]> granicus.if.org Git - openssl/commitdiff
Fix shadow declaration.
authorFelix Laurie von Massenbach <felix@erbridge.co.uk>
Sun, 15 Jun 2014 10:52:06 +0000 (11:52 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 17 Jun 2014 16:41:46 +0000 (17:41 +0100)
crypto/evp/e_aes_cbc_hmac_sha1.c
crypto/evp/e_aes_cbc_hmac_sha256.c

index b2d797dba2ebf0aeeede0faead3bbc154fd8f870..717e388fc3eb1a9a3f272c16f7796a02447d5d67 100644 (file)
@@ -210,8 +210,6 @@ static size_t tls1_1_multi_block_encrypt(EVP_AES_HMAC_SHA1 *key,
        u8              *IVs;
 #if defined(BSWAP8)
        u64             seqnum;
-#else
-       unsigned int    carry,j;
 #endif
 
        if (RAND_bytes((IVs=blocks[0].c),16*x4)<=0)     /* ask for IVs in bulk */
@@ -248,6 +246,9 @@ static size_t tls1_1_multi_block_encrypt(EVP_AES_HMAC_SHA1 *key,
 #endif
        for (i=0;i<x4;i++) {
                unsigned int len = (i==(x4-1)?last:frag);
+#if !defined(BSWAP8)
+               unsigned int carry, j;
+#endif
 
                ctx->A[i] = key->md.h0;
                ctx->B[i] = key->md.h1;
index 63c6acda974f1d523a67f9d104912bec9c4c9192..c6c05d936b009609d1eb7bf87f4aecfeecbb4cd4 100644 (file)
@@ -206,8 +206,6 @@ static size_t tls1_1_multi_block_encrypt(EVP_AES_HMAC_SHA256 *key,
        u8              *IVs;
 #if defined(BSWAP8)
        u64             seqnum;
-#else
-       unsigned int    carry,j;
 #endif
 
        if (RAND_bytes((IVs=blocks[0].c),16*x4)<=0)     /* ask for IVs in bulk */
@@ -244,6 +242,9 @@ static size_t tls1_1_multi_block_encrypt(EVP_AES_HMAC_SHA256 *key,
 #endif
        for (i=0;i<x4;i++) {
                unsigned int len = (i==(x4-1)?last:frag);
+#if !defined(BSWAP8)
+               unsigned int carry, j;
+#endif
 
                ctx->A[i] = key->md.h[0];
                ctx->B[i] = key->md.h[1];