aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rules
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-02-09 19:07:24 (GMT)
committerJouni Malinen <j@w1.fi>2019-02-11 00:35:29 (GMT)
commit1ac9c020b5865bd1422a253a41deef2778481670 (patch)
treec8fae64f4d1a8a13d29e8d97a99842f2af96b648 /src/lib.rules
parentb49ec2597916e3880f4dc26f136f5c72bbb29ca0 (diff)
downloadhostap-1ac9c020b5865bd1422a253a41deef2778481670.zip
hostap-1ac9c020b5865bd1422a253a41deef2778481670.tar.gz
hostap-1ac9c020b5865bd1422a253a41deef2778481670.tar.bz2
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>
Diffstat (limited to 'src/lib.rules')
-rw-r--r--src/lib.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rules b/src/lib.rules
index 0c79d99..4ec4711 100644
--- a/src/lib.rules
+++ b/src/lib.rules
@@ -6,6 +6,11 @@ ifndef CFLAGS
CFLAGS = -MMD -O2 -Wall -g
endif
+ifdef TEST_FUZZ
+CFLAGS += -DCONFIG_NO_RANDOM_POOL
+CFLAGS += -DTEST_FUZZ
+endif
+
CFLAGS += -I.. -I../utils