Skip to content

Commit 73f3526

Browse files
committed
Fix cppcheck warning
1 parent 569a96f commit 73f3526

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/crl.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,10 @@ int BufferStoreCRL(WOLFSSL_CRL* crl, byte* buff, long* inOutSz, int type)
10471047
pos += SetAlgoID((int)sigOID, buff + pos, oidSigType, 0);
10481048
}
10491049

1050-
if (ret == 0) {
1050+
#ifdef WC_RSA_PSS
1051+
if (ret == 0)
1052+
#endif
1053+
{
10511054
/* signature BIT STRING and bytes */
10521055
pos += SetBitString(sigSz, 0, buff + pos);
10531056
XMEMCPY(buff + pos, sig, sigSz);
@@ -1099,7 +1102,10 @@ int BufferStoreCRL(WOLFSSL_CRL* crl, byte* buff, long* inOutSz, int type)
10991102
{
11001103
pos += SetAlgoID((int)sigOID, derTmp + pos, oidSigType, 0);
11011104
}
1102-
if (ret == 0) {
1105+
#ifdef WC_RSA_PSS
1106+
if (ret == 0)
1107+
#endif
1108+
{
11031109
pos += SetBitString(sigSz, 0, derTmp + pos);
11041110
XMEMCPY(derTmp + pos, sig, sigSz);
11051111
}

0 commit comments

Comments
 (0)