forked from wolfSSL/wolfssl
add psk cipher suite tests
This commit is contained in:
@ -16,4 +16,7 @@ tests_unit_CFLAGS = -DNO_MAIN_DRIVER $(AM_CFLAGS) $(PTHREAD_CFLAGS)
|
|||||||
tests_unit_LDADD = src/libcyassl.la $(PTHREAD_LIBS)
|
tests_unit_LDADD = src/libcyassl.la $(PTHREAD_LIBS)
|
||||||
tests_unit_DEPENDENCIES = src/libcyassl.la
|
tests_unit_DEPENDENCIES = src/libcyassl.la
|
||||||
EXTRA_DIST += tests/unit.h
|
EXTRA_DIST += tests/unit.h
|
||||||
EXTRA_DIST += tests/test.conf tests/test-openssl.conf tests/test-hc128.conf
|
EXTRA_DIST += tests/test.conf \
|
||||||
|
tests/test-openssl.conf \
|
||||||
|
tests/test-hc128.conf \
|
||||||
|
tests/test-psk.conf
|
||||||
|
@ -258,6 +258,17 @@ int SuiteTest(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NO_PSK
|
||||||
|
/* add psk extra suites */
|
||||||
|
strcpy(argv0[1], "tests/test-psk.conf");
|
||||||
|
printf("starting psk 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");
|
printf(" End Cipher Suite Tests\n");
|
||||||
|
|
||||||
return args.return_code;
|
return args.return_code;
|
||||||
|
60
tests/test-psk.conf
Normal file
60
tests/test-psk.conf
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
# server TLSv1 PSK-AES128
|
||||||
|
-s
|
||||||
|
-v 1
|
||||||
|
-l PSK-AES128-CBC-SHA
|
||||||
|
|
||||||
|
# client TLSv1 PSK-AES128
|
||||||
|
-s
|
||||||
|
-v 1
|
||||||
|
-l PSK-AES128-CBC-SHA
|
||||||
|
|
||||||
|
# server TLSv1 PSK-AES256
|
||||||
|
-s
|
||||||
|
-v 1
|
||||||
|
-l PSK-AES256-CBC-SHA
|
||||||
|
|
||||||
|
# client TLSv1 PSK-AES256
|
||||||
|
-s
|
||||||
|
-v 1
|
||||||
|
-l PSK-AES256-CBC-SHA
|
||||||
|
|
||||||
|
# server TLSv1.1 PSK-AES128
|
||||||
|
-s
|
||||||
|
-v 2
|
||||||
|
-l PSK-AES128-CBC-SHA
|
||||||
|
|
||||||
|
# client TLSv1.1 PSK-AES128
|
||||||
|
-s
|
||||||
|
-v 2
|
||||||
|
-l PSK-AES128-CBC-SHA
|
||||||
|
|
||||||
|
# server TLSv1.1 PSK-AES256
|
||||||
|
-s
|
||||||
|
-v 2
|
||||||
|
-l PSK-AES256-CBC-SHA
|
||||||
|
|
||||||
|
# client TLSv1.1 PSK-AES256
|
||||||
|
-s
|
||||||
|
-v 2
|
||||||
|
-l PSK-AES256-CBC-SHA
|
||||||
|
|
||||||
|
# server TLSv1.2 PSK-AES128
|
||||||
|
-s
|
||||||
|
-v 3
|
||||||
|
-l PSK-AES128-CBC-SHA
|
||||||
|
|
||||||
|
# client TLSv1.2 PSK-AES128
|
||||||
|
-s
|
||||||
|
-v 3
|
||||||
|
-l PSK-AES128-CBC-SHA
|
||||||
|
|
||||||
|
# server TLSv1.2 PSK-AES256
|
||||||
|
-s
|
||||||
|
-v 3
|
||||||
|
-l PSK-AES256-CBC-SHA
|
||||||
|
|
||||||
|
# client TLSv1.2 PSK-AES256
|
||||||
|
-s
|
||||||
|
-v 3
|
||||||
|
-l PSK-AES256-CBC-SHA
|
||||||
|
|
Reference in New Issue
Block a user