mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Fix unit test.
This commit is contained in:
@@ -1656,6 +1656,9 @@ static void test_wolfSSL_DH_get0_pqg(void)
|
|||||||
#endif
|
#endif
|
||||||
printf(testingFmt, "test_wolfSSL_DH_get0_pqg");
|
printf(testingFmt, "test_wolfSSL_DH_get0_pqg");
|
||||||
|
|
||||||
|
dh = wolfSSL_DH_new();
|
||||||
|
AssertNotNull(dh);
|
||||||
|
|
||||||
/* invalid parameters test */
|
/* invalid parameters test */
|
||||||
DH_get0_pqg(NULL, &p, &q, &g);
|
DH_get0_pqg(NULL, &p, &q, &g);
|
||||||
DH_get0_pqg(dh, NULL, &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);
|
DH_get0_pqg(dh, NULL, NULL, NULL);
|
||||||
AssertTrue(1);
|
AssertTrue(1);
|
||||||
|
|
||||||
dh = wolfSSL_DH_new();
|
|
||||||
AssertNotNull(dh);
|
|
||||||
|
|
||||||
DH_get0_pqg(dh, &p, &q, &g);
|
DH_get0_pqg(dh, &p, &q, &g);
|
||||||
AssertPtrEq(p, NULL);
|
AssertPtrEq(p, NULL);
|
||||||
AssertPtrEq(q, NULL);
|
AssertPtrEq(q, NULL);
|
||||||
|
Reference in New Issue
Block a user