From cc10c971cd59903167b598912e64adb83c72f27f Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 17 Aug 2018 11:04:21 -0600 Subject: [PATCH 1/2] make sure that even if wolfSSL_Init has been called multiple times that wolfSSL_Cleanup gets called in tests --- tests/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/api.c b/tests/api.c index 4eed39d2d..12a86b875 100644 --- a/tests/api.c +++ b/tests/api.c @@ -20659,6 +20659,7 @@ void ApiTest(void) AssertIntEQ(test_ForceZero(), 0); AssertIntEQ(test_wolfSSL_Cleanup(), WOLFSSL_SUCCESS); + wolfSSL_Cleanup(); printf(" End API Tests\n"); From ed9aaa93f47ce5ff62f0da91676a7af59dccd67f Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 17 Aug 2018 11:06:40 -0600 Subject: [PATCH 2/2] include tfm in example client for veiwing FP_MAX_BITS --- examples/client/client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/client/client.c b/examples/client/client.c index be6367d84..d435950fe 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -44,6 +44,11 @@ #ifndef NO_WOLFSSL_CLIENT +#ifdef USE_FAST_MATH + /* included to inspect the size of FP_MAX_BITS */ + #include +#endif + #ifdef WOLFSSL_ASYNC_CRYPT static int devId = INVALID_DEVID; #endif