Move the local variable declaration to the beginning of the function

This commit is contained in:
TakayukiMatsuo
2021-03-01 00:49:50 +09:00
parent e72948b018
commit a34c5b018f

View File

@ -7208,7 +7208,7 @@ static int PrintPubKeyEC(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
static int PrintPubKeyDSA(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
int indent, int bitlen, ASN1_PCTX* pctx)
{
(void)pctx;
int length;
int res;
byte buff[128] = { 0 };
@ -7221,6 +7221,7 @@ static int PrintPubKeyDSA(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
int wsz = 0;
inOutIdx = 0;
(void)pctx;
if (GetSequence(pkey, &inOutIdx, &length, pkeySz) < 0)
return WOLFSSL_FAILURE;
if (GetSequence(pkey, &inOutIdx, &length, pkeySz) < 0)
@ -7374,7 +7375,7 @@ static int PrintPubKeyDSA(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
static int PrintPubKeyDH(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
int indent, int bitlen, ASN1_PCTX* pctx)
{
(void)pctx;
word32 length;
byte buff[128] = { 0 };
word32 inOutIdx = 0;
@ -7389,6 +7390,7 @@ static int PrintPubKeyDH(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
int wsz = 0;
inOutIdx = 0;
(void)pctx;
if (GetSequence(pkey, &inOutIdx, (int*)&length, pkeySz) < 0)
return WOLFSSL_FAILURE;
if (GetSequence(pkey, &inOutIdx, (int*)&length, pkeySz) < 0)