I think I now understand the trailing white space...

This commit is contained in:
Tim
2018-05-23 11:57:12 -06:00
parent 124f45d449
commit 4fd85853c5

View File

@@ -14824,8 +14824,7 @@ static void test_wc_PKCS7_EncodeEncryptedData (void)
NULL, sizeof(decoded)), BAD_FUNC_ARG); NULL, sizeof(decoded)), BAD_FUNC_ARG);
AssertIntEQ(wc_PKCS7_DecodeEncryptedData(&pkcs7, encrypted, encryptedSz, AssertIntEQ(wc_PKCS7_DecodeEncryptedData(&pkcs7, encrypted, encryptedSz,
decoded, 0), BAD_FUNC_ARG); decoded, 0), BAD_FUNC_ARG);
/* Test /* Test struct fields */
struct fields */
tmpBytePtr = pkcs7.encryptionKey; tmpBytePtr = pkcs7.encryptionKey;
pkcs7.encryptionKey = NULL; pkcs7.encryptionKey = NULL;
@@ -14841,9 +14840,12 @@ static void test_wc_PKCS7_EncodeEncryptedData (void)
#endif #endif
} /* END test_wc_PKCS7_EncodeEncryptedData() */ } /* END test_wc_PKCS7_EncodeEncryptedData() */
/*----------------------------------------------------------------------------* /*----------------------------------------------------------------------------*
| hash.h Tests | hash.h Tests
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
static int test_wc_HashInit(void) static int test_wc_HashInit(void)
{ {
int ret = 0, i; /* 0 indicates tests passed, 1 indicates failure */ int ret = 0, i; /* 0 indicates tests passed, 1 indicates failure */
@@ -14893,7 +14895,7 @@ static int test_wc_HashInit(void)
if (ret==0) { /* all tests have passed */ if (ret==0) { /* all tests have passed */
printf(resultFmt, passed); printf(resultFmt, passed);
} }
if(ret==1) { /* a test has failed */ else { /* a test has failed */
printf(resultFmt, failed); printf(resultFmt, failed);
} }
return ret; return ret;
@@ -19050,7 +19052,6 @@ void ApiTest(void)
test_wc_PKCS7_EncodeDecodeEnvelopedData(); test_wc_PKCS7_EncodeDecodeEnvelopedData();
test_wc_PKCS7_EncodeEncryptedData(); test_wc_PKCS7_EncodeEncryptedData();
printf(" End API Tests\n"); printf(" End API Tests\n");
} }