Fix unit test.

This commit is contained in:
TakayukiMatsuo
2021-04-22 09:55:38 +09:00
parent 568c09bcde
commit d22ed7443b

View File

@@ -1656,6 +1656,9 @@ static void test_wolfSSL_DH_get0_pqg(void)
#endif
printf(testingFmt, "test_wolfSSL_DH_get0_pqg");
dh = wolfSSL_DH_new();
AssertNotNull(dh);
/* invalid parameters test */
DH_get0_pqg(NULL, &p, &q, &g);
DH_get0_pqg(dh, NULL, &q, &g);
@@ -1663,9 +1666,6 @@ static void test_wolfSSL_DH_get0_pqg(void)
DH_get0_pqg(dh, NULL, NULL, NULL);
AssertTrue(1);
dh = wolfSSL_DH_new();
AssertNotNull(dh);
DH_get0_pqg(dh, &p, &q, &g);
AssertPtrEq(p, NULL);
AssertPtrEq(q, NULL);