]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: TLS fuzzing tool
authorJouni Malinen <j@w1.fi>
Sat, 9 Feb 2019 19:07:24 +0000 (21:07 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 11 Feb 2019 00:35:29 +0000 (02:35 +0200)
commit1ac9c020b5865bd1422a253a41deef2778481670
treec8fae64f4d1a8a13d29e8d97a99842f2af96b648
parentb49ec2597916e3880f4dc26f136f5c72bbb29ca0
tests: TLS fuzzing tool

Add test-tls program that can be used for fuzzing the internal TLS
client and server implementations. This tool can write client or server
messages into a file as an initialization step and for the fuzzing step,
that file (with potential modifications) can be used to replace the
internally generated message contents.

The TEST_FUZZ=y build parameter is used to make a special build where a
hardcoded random number generator and hardcoded timestamp are used to
force deterministic behavior for the TLS operations.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/Makefile
src/lib.rules
src/tls/tlsv1_client_write.c
src/tls/tlsv1_server_write.c
src/utils/os_unix.c
tests/Makefile
tests/test-tls.c [new file with mode: 0644]