Skip to content

Commit 1f9dd3c

Browse files
committed
Fix unused variable warning in PKCS7 without WC_RSA_PSS
1 parent 85228f0 commit 1f9dd3c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/os-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
CPPFLAGS=''-DWC_RNG_SEED_CB -DWOLFSSL_NO_GETPID'' ',
5656
# PKCS#7 with RSA-PSS (CMS RSASSA-PSS signers)
5757
'--enable-pkcs7 CPPFLAGS=-DWC_RSA_PSS',
58+
# PKCS#7 without RSA-PSS
59+
'--enable-pkcs7',
5860
'--enable-opensslextra CPPFLAGS=''-DWOLFSSL_NO_CA_NAMES'' ',
5961
'--enable-opensslextra=x509small',
6062
'CPPFLAGS=''-DWOLFSSL_EXTRA'' ',

wolfcrypt/src/pkcs7.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5445,6 +5445,9 @@ static int wc_PKCS7_ParseSignerInfo(wc_PKCS7* pkcs7, byte* in, word32 inSz,
54455445
ret = ASN_PARSE_E;
54465446
}
54475447
else {
5448+
#if !defined(WC_RSA_PSS) || defined(NO_RSA)
5449+
(void)paramsStart;
5450+
#endif
54485451
#if defined(WC_RSA_PSS) && !defined(NO_RSA)
54495452
if ((word32)sigOID == (word32)CTC_RSASSAPSS &&
54505453
paramTag == (ASN_SEQUENCE | ASN_CONSTRUCTED)) {

0 commit comments

Comments
 (0)