From 73349ec0d3347520e19f4cd75c5a9961ddb294a0 Mon Sep 17 00:00:00 2001 From: toddouska Date: Wed, 8 Aug 2012 17:09:09 -0700 Subject: [PATCH] add DTLS basic cipher suite tests --- tests/include.am | 3 ++- tests/suites.c | 11 ++++++++ tests/test-dtls.conf | 64 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 tests/test-dtls.conf diff --git a/tests/include.am b/tests/include.am index bb36546cc..d62e3f98a 100644 --- a/tests/include.am +++ b/tests/include.am @@ -24,4 +24,5 @@ EXTRA_DIST += tests/test.conf \ tests/test-ecc.conf \ tests/test-aesgcm.conf \ tests/test-aesgcm-ecc.conf \ - tests/test-aesgcm-openssl.conf + tests/test-aesgcm-openssl.conf \ + tests/test-dtls.conf diff --git a/tests/suites.c b/tests/suites.c index 0d3fb361c..6e59ed8af 100644 --- a/tests/suites.c +++ b/tests/suites.c @@ -324,6 +324,17 @@ int SuiteTest(void) } #endif +#ifdef CYASSL_DTLS + /* add dtls extra suites */ + strcpy(argv0[1], "tests/test-dtls.conf"); + printf("starting dtls extra cipher suite tests\n"); + test_harness(&args); + if (args.return_code != 0) { + printf("error from script %d\n", args.return_code); + exit(EXIT_FAILURE); + } +#endif + printf(" End Cipher Suite Tests\n"); return args.return_code; diff --git a/tests/test-dtls.conf b/tests/test-dtls.conf new file mode 100644 index 000000000..7cffa9660 --- /dev/null +++ b/tests/test-dtls.conf @@ -0,0 +1,64 @@ +# server DTLSv1 RC4-SHA +-u +-l RC4-SHA + +# client DTLSv1 RC4-SHA +-u +-l RC4-SHA + +# server DTLSv1 RC4-MD5 +-u +-l RC4-MD5 + +# client DTLSv1 RC4-MD5 +-u +-l RC4-MD5 + +# server DTLSv1 DES-CBC3-SHA +-u +-l DES-CBC3-SHA + +# client DTLSv1 DES-CBC3-SHA +-u +-l DES-CBC3-SHA + +# server DTLSv1 AES128-SHA +-u +-l AES128-SHA + +# client DTLSv1 AES128-SHA +-u +-l AES128-SHA + +# server DTLSv1 AES256-SHA +-u +-l AES256-SHA + +# client DTLSv1 AES256-SHA +-u +-l AES256-SHA + +# server DTLSv1 AES128-SHA256 +-u +-l AES128-SHA256 + +# client DTLSv1 AES128-SHA256 +-u +-l AES128-SHA256 + +# server DTLSv1 AES256-SHA256 +-u +-l AES256-SHA256 + +# client DTLSv1 AES256-SHA256 +-u +-l AES256-SHA256 + +# server DTLSv1 RABBIT-SHA +-u +-l RABBIT-SHA + +# client DTLSv1 RABBIT-SHA +-u +-l RABBIT-SHA +