Fix unused variable warning in PKCS7 without WC_RSA_PSS

This commit is contained in:
jackctj117
2026-02-26 14:04:49 -07:00
parent 85228f088e
commit 1f9dd3c955
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -55,6 +55,8 @@ jobs:
CPPFLAGS=''-DWC_RNG_SEED_CB -DWOLFSSL_NO_GETPID'' ',
# PKCS#7 with RSA-PSS (CMS RSASSA-PSS signers)
'--enable-pkcs7 CPPFLAGS=-DWC_RSA_PSS',
# PKCS#7 without RSA-PSS
'--enable-pkcs7',
'--enable-opensslextra CPPFLAGS=''-DWOLFSSL_NO_CA_NAMES'' ',
'--enable-opensslextra=x509small',
'CPPFLAGS=''-DWOLFSSL_EXTRA'' ',
+3
View File
@@ -5445,6 +5445,9 @@ static int wc_PKCS7_ParseSignerInfo(wc_PKCS7* pkcs7, byte* in, word32 inSz,
ret = ASN_PARSE_E;
}
else {
#if !defined(WC_RSA_PSS) || defined(NO_RSA)
(void)paramsStart;
#endif
#if defined(WC_RSA_PSS) && !defined(NO_RSA)
if ((word32)sigOID == (word32)CTC_RSASSAPSS &&
paramTag == (ASN_SEQUENCE | ASN_CONSTRUCTED)) {