Skip to content

Commit 3e04475

Browse files
Fix unused variable error
1 parent ebdcc03 commit 3e04475

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

wolfcrypt/src/pkcs7.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,7 +2197,6 @@ static int wc_PKCS7_BuildSignedAttributes(wc_PKCS7* pkcs7, ESD* esd,
21972197
#endif
21982198
word32 idx = 0;
21992199
word32 atrIdx = 0;
2200-
word32 cannedAttribsCount;
22012200

22022201
if (pkcs7 == NULL || esd == NULL || contentType == NULL ||
22032202
contentTypeOid == NULL || messageDigestOid == NULL ||
@@ -2220,8 +2219,6 @@ static int wc_PKCS7_BuildSignedAttributes(wc_PKCS7* pkcs7, ESD* esd,
22202219
return timeSz;
22212220
#endif
22222221

2223-
cannedAttribsCount = sizeof(cannedAttribs)/sizeof(PKCS7Attrib);
2224-
22252222
XMEMSET(&cannedAttribs[idx], 0, sizeof(cannedAttribs[idx]));
22262223

22272224
if ((pkcs7->defaultSignedAttribs & WOLFSSL_CONTENT_TYPE_ATTRIBUTE) ||

0 commit comments

Comments
 (0)