mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 16:20:48 +02:00
Fix unused variable warning in PKCS7 without WC_RSA_PSS
This commit is contained in:
@@ -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'' ',
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user