mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Move the local variable declaration to the beginning of the function
This commit is contained in:
@ -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,
|
static int PrintPubKeyDSA(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
|
||||||
int indent, int bitlen, ASN1_PCTX* pctx)
|
int indent, int bitlen, ASN1_PCTX* pctx)
|
||||||
{
|
{
|
||||||
(void)pctx;
|
|
||||||
int length;
|
int length;
|
||||||
int res;
|
int res;
|
||||||
byte buff[128] = { 0 };
|
byte buff[128] = { 0 };
|
||||||
@ -7221,6 +7221,7 @@ static int PrintPubKeyDSA(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
|
|||||||
int wsz = 0;
|
int wsz = 0;
|
||||||
|
|
||||||
inOutIdx = 0;
|
inOutIdx = 0;
|
||||||
|
(void)pctx;
|
||||||
if (GetSequence(pkey, &inOutIdx, &length, pkeySz) < 0)
|
if (GetSequence(pkey, &inOutIdx, &length, pkeySz) < 0)
|
||||||
return WOLFSSL_FAILURE;
|
return WOLFSSL_FAILURE;
|
||||||
if (GetSequence(pkey, &inOutIdx, &length, pkeySz) < 0)
|
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,
|
static int PrintPubKeyDH(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
|
||||||
int indent, int bitlen, ASN1_PCTX* pctx)
|
int indent, int bitlen, ASN1_PCTX* pctx)
|
||||||
{
|
{
|
||||||
(void)pctx;
|
|
||||||
word32 length;
|
word32 length;
|
||||||
byte buff[128] = { 0 };
|
byte buff[128] = { 0 };
|
||||||
word32 inOutIdx = 0;
|
word32 inOutIdx = 0;
|
||||||
@ -7389,6 +7390,7 @@ static int PrintPubKeyDH(WOLFSSL_BIO* out, const byte* pkey, int pkeySz,
|
|||||||
int wsz = 0;
|
int wsz = 0;
|
||||||
|
|
||||||
inOutIdx = 0;
|
inOutIdx = 0;
|
||||||
|
(void)pctx;
|
||||||
if (GetSequence(pkey, &inOutIdx, (int*)&length, pkeySz) < 0)
|
if (GetSequence(pkey, &inOutIdx, (int*)&length, pkeySz) < 0)
|
||||||
return WOLFSSL_FAILURE;
|
return WOLFSSL_FAILURE;
|
||||||
if (GetSequence(pkey, &inOutIdx, (int*)&length, pkeySz) < 0)
|
if (GetSequence(pkey, &inOutIdx, (int*)&length, pkeySz) < 0)
|
||||||
|
Reference in New Issue
Block a user