From f535e5428e268e5c9d351a7db09de97a2d6365a0 Mon Sep 17 00:00:00 2001 From: toddouska Date: Wed, 10 Apr 2013 12:17:23 -0700 Subject: [PATCH] make sure all tests/examples *.c use settings.h correctly --- ctaocrypt/benchmark/benchmark.c | 2 ++ ctaocrypt/test/test.c | 2 ++ examples/client/client.c | 2 ++ examples/echoclient/echoclient.c | 2 ++ examples/echoserver/echoserver.c | 2 ++ examples/server/server.c | 2 ++ mcapi/crypto.c | 2 ++ mcapi/test.c | 2 ++ sslSniffer/sslSnifferTest/snifftest.c | 2 ++ swig/cyassl_adds.c | 2 ++ tests/api.c | 2 ++ tests/hash.c | 2 ++ tests/suites.c | 2 ++ tests/unit.c | 2 ++ testsuite/testsuite.c | 2 ++ 15 files changed, 30 insertions(+) diff --git a/ctaocrypt/benchmark/benchmark.c b/ctaocrypt/benchmark/benchmark.c index 0f55aca7c..62f80024e 100644 --- a/ctaocrypt/benchmark/benchmark.c +++ b/ctaocrypt/benchmark/benchmark.c @@ -25,6 +25,8 @@ #include #endif +#include + #include #include diff --git a/ctaocrypt/test/test.c b/ctaocrypt/test/test.c index 4fe94eec9..3166bbe43 100644 --- a/ctaocrypt/test/test.c +++ b/ctaocrypt/test/test.c @@ -23,6 +23,8 @@ #include #endif +#include + #ifdef CYASSL_TEST_CERT #include #else diff --git a/examples/client/client.c b/examples/client/client.c index 240c3519f..b223e20ed 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -23,6 +23,8 @@ #include #endif +#include + #if !defined(CYASSL_TRACK_MEMORY) && !defined(NO_MAIN_DRIVER) /* in case memory tracker wants stats */ #define CYASSL_TRACK_MEMORY diff --git a/examples/echoclient/echoclient.c b/examples/echoclient/echoclient.c index 6f3258465..ec5fad42f 100644 --- a/examples/echoclient/echoclient.c +++ b/examples/echoclient/echoclient.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include diff --git a/examples/echoserver/echoserver.c b/examples/echoserver/echoserver.c index 1052fa5d5..849543fe4 100644 --- a/examples/echoserver/echoserver.c +++ b/examples/echoserver/echoserver.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include diff --git a/examples/server/server.c b/examples/server/server.c index aaa3f8b05..376376a40 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -23,6 +23,8 @@ #include #endif +#include + #if !defined(CYASSL_TRACK_MEMORY) && !defined(NO_MAIN_DRIVER) /* in case memory tracker wants stats */ #define CYASSL_TRACK_MEMORY diff --git a/mcapi/crypto.c b/mcapi/crypto.c index e3508884f..87893a96a 100644 --- a/mcapi/crypto.c +++ b/mcapi/crypto.c @@ -26,6 +26,8 @@ #include "crypto.h" +#include + #include #include #include diff --git a/mcapi/test.c b/mcapi/test.c index ab9fdebc1..40de58bc0 100644 --- a/mcapi/test.c +++ b/mcapi/test.c @@ -27,6 +27,8 @@ /* mc api header */ #include "crypto.h" +#include + /* sanity test against our default implementation, cyassl headers */ #include #include diff --git a/sslSniffer/sslSnifferTest/snifftest.c b/sslSniffer/sslSnifferTest/snifftest.c index 1ddf1e538..3f9160902 100755 --- a/sslSniffer/sslSnifferTest/snifftest.c +++ b/sslSniffer/sslSnifferTest/snifftest.c @@ -23,6 +23,8 @@ #include #endif +#include + #ifdef _WIN32 #define CYASSL_SNIFFER #endif diff --git a/swig/cyassl_adds.c b/swig/cyassl_adds.c index d9035f17b..0c15553b0 100644 --- a/swig/cyassl_adds.c +++ b/swig/cyassl_adds.c @@ -23,6 +23,8 @@ #include #endif +#include + #ifndef _WIN32 #define HAVE_CONFIG_H #endif diff --git a/tests/api.c b/tests/api.c index f97c306a8..fc0540c36 100644 --- a/tests/api.c +++ b/tests/api.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include #include diff --git a/tests/hash.c b/tests/hash.c index 1a124e098..245dc0941 100644 --- a/tests/hash.c +++ b/tests/hash.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include diff --git a/tests/suites.c b/tests/suites.c index 1283df046..01a6e0a4f 100644 --- a/tests/suites.c +++ b/tests/suites.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include #include diff --git a/tests/unit.c b/tests/unit.c index cd7c1e76d..5fb492055 100644 --- a/tests/unit.c +++ b/tests/unit.c @@ -3,6 +3,8 @@ #include #endif +#include + #include #include diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index c6cbe5fb5..4431c51e8 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include #include