mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
1. Bug fix for taking the size of something.
(Used wrong variable name.) 2. Renamed PKCS7 signed data test output file. 3. Added PKCS7 data test output files to gitignore.
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -54,8 +54,8 @@ key.der
|
||||
key.pem
|
||||
certreq.der
|
||||
certreq.pem
|
||||
pkcs7test.der
|
||||
pkcs7test.pem
|
||||
pkcs7signedData.der
|
||||
pkcs7envelopedData.der
|
||||
diff
|
||||
sslSniffer/sslSnifferTest/tracefile.txt
|
||||
*.gz
|
||||
|
@@ -317,7 +317,7 @@ int PKCS7_EncodeSignedData(PKCS7* pkcs7, byte* output, word32 outputSz)
|
||||
byte* flatSignedAttribs = NULL;
|
||||
word32 flatSignedAttribsSz = 0;
|
||||
word32 innerOidSz = sizeof(innerOid);
|
||||
word32 outerOidSz = sizeof(outerOidSz);
|
||||
word32 outerOidSz = sizeof(outerOid);
|
||||
|
||||
XMEMSET(&esd, 0, sizeof(esd));
|
||||
InitSha(&esd.sha);
|
||||
|
@@ -4125,7 +4125,7 @@ int pkcs7_test(void)
|
||||
outSz = ret;
|
||||
|
||||
/* write PKCS#7 to output file for more testing */
|
||||
pkcs7File = fopen("./pkcs7test.der", "wb");
|
||||
pkcs7File = fopen("./pkcs7signedData.der", "wb");
|
||||
if (!pkcs7File)
|
||||
return -43;
|
||||
ret = (int)fwrite(out, outSz, 1, pkcs7File);
|
||||
|
Reference in New Issue
Block a user