diff --git a/tests/include.am b/tests/include.am index c061320c1..374e1676b 100644 --- a/tests/include.am +++ b/tests/include.am @@ -24,6 +24,7 @@ EXTRA_DIST += tests/test.conf \ tests/test-psk.conf \ tests/test-ntru.conf \ tests/test-ecc.conf \ + tests/test-ecc-sha384.conf \ tests/test-aesgcm.conf \ tests/test-aesgcm-ecc.conf \ tests/test-aesgcm-openssl.conf \ diff --git a/tests/suites.c b/tests/suites.c index 00df11a55..459e1e063 100644 --- a/tests/suites.c +++ b/tests/suites.c @@ -357,6 +357,16 @@ int SuiteTest(void) printf("error from script %d\n", args.return_code); exit(EXIT_FAILURE); } + #ifdef CYASSL_SHA384 + /* add ecc extra suites */ + strcpy(argv0[1], "tests/test-ecc-sha384.conf"); + printf("starting ecc-sha384 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 #endif #ifdef HAVE_AESGCM diff --git a/tests/test-ecc-sha384.conf b/tests/test-ecc-sha384.conf new file mode 100644 index 000000000..554b2c547 --- /dev/null +++ b/tests/test-ecc-sha384.conf @@ -0,0 +1,40 @@ +# server TLSv1.2 ECDHE-RSA-AES256-SHA384 +-v 3 +-l ECDHE-RSA-AES256-SHA384 + +# client TLSv1.2 ECDHE-RSA-AES256-SHA384 +-v 3 +-l ECDHE-RSA-AES256-SHA384 + +# server TLSv1.2 ECDHE-ECDSA-AES256-SHA384 +-v 3 +-l ECDHE-ECDSA-AES256-SHA384 +-c ./certs/server-ecc.pem +-k ./certs/ecc-key.pem + +# client TLSv1.2 ECDHE-ECDSA-AES256-SHA384 +-v 3 +-l ECDHE-ECDSA-AES256-SHA384 +-A ./certs/server-ecc.pem + +# server TLSv1.2 ECDH-RSA-AES256-SHA384 +-v 3 +-l ECDH-RSA-AES256-SHA384 +-c ./certs/server-ecc-rsa.pem +-k ./certs/ecc-key.pem + +# client TLSv1.2 ECDH-RSA-AES256-SHA384 +-v 3 +-l ECDH-RSA-AES256-SHA384 + +# server TLSv1.2 ECDH-ECDSA-AES256-SHA384 +-v 3 +-l ECDH-ECDSA-AES256-SHA384 +-c ./certs/server-ecc.pem +-k ./certs/ecc-key.pem + +# client TLSv1.2 ECDH-ECDSA-AES256-SHA384 +-v 3 +-l ECDH-ECDSA-AES256-SHA384 +-A ./certs/server-ecc.pem +