mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +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,
|
||||
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)
|
||||
|
Reference in New Issue
Block a user