forked from wolfSSL/wolfssl
Merge pull request #1228 from abrahamsonn/2275
Moved variable declaration to beginning of block
This commit is contained in:
@ -10991,6 +10991,9 @@ static int ecc_test_make_pub(WC_RNG* rng)
|
|||||||
#ifdef HAVE_ECC_VERIFY
|
#ifdef HAVE_ECC_VERIFY
|
||||||
int verify = 0;
|
int verify = 0;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef USE_CERT_BUFFERS_256
|
||||||
|
FILE* file;
|
||||||
|
#endif
|
||||||
|
|
||||||
tmp = (byte*)XMALLOC(FOURK_BUF, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
|
tmp = (byte*)XMALLOC(FOURK_BUF, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
@ -11006,7 +11009,6 @@ static int ecc_test_make_pub(WC_RNG* rng)
|
|||||||
XMEMCPY(tmp, ecc_key_der_256, (size_t)sizeof_ecc_key_der_256);
|
XMEMCPY(tmp, ecc_key_der_256, (size_t)sizeof_ecc_key_der_256);
|
||||||
tmpSz = (size_t)sizeof_ecc_key_der_256;
|
tmpSz = (size_t)sizeof_ecc_key_der_256;
|
||||||
#else
|
#else
|
||||||
FILE* file;
|
|
||||||
file = fopen(eccKeyDerFile, "rb");
|
file = fopen(eccKeyDerFile, "rb");
|
||||||
if (!file) {
|
if (!file) {
|
||||||
ERROR_OUT(-6812, done);
|
ERROR_OUT(-6812, done);
|
||||||
|
Reference in New Issue
Block a user