aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-27 19:27:01 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-27 19:27:01 (GMT)
commitcd52acec8587f6530a4434ea78159ce5b4b34bb2 (patch)
tree7d930921a74dedcf07ea1b006617f6a2ae3db083 /tests
parentebe4e8f814456bc74534d7c99e1dd6b184b79858 (diff)
downloadhostap-cd52acec8587f6530a4434ea78159ce5b4b34bb2.zip
hostap-cd52acec8587f6530a4434ea78159ce5b4b34bb2.tar.gz
hostap-cd52acec8587f6530a4434ea78159ce5b4b34bb2.tar.bz2
Rename tls_prf() to tls_prf_sha1_md5()
Prepare for multiple TLS PRF functions by renaming the SHA1+MD5 based TLS PRF function to more specific name and add tls_prf() within the internal TLS implementation as a wrapper for this for now. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-sha1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-sha1.c b/tests/test-sha1.c
index 6c48f2b..1b390f1 100644
--- a/tests/test-sha1.c
+++ b/tests/test-sha1.c
@@ -137,8 +137,9 @@ static int test_eap_fast(void)
}
printf("- PRF (TLS, SHA1/MD5) test case / key_block\n");
- if (tls_prf(master_secret, sizeof(master_secret), "key expansion",
- seed, sizeof(seed), buf, sizeof(key_block)) ||
+ if (tls_prf_sha1_md5(master_secret, sizeof(master_secret),
+ "key expansion", seed, sizeof(seed),
+ buf, sizeof(key_block)) ||
memcmp(key_block, buf, sizeof(key_block)) != 0) {
printf("PRF test - FAILED!\n");
errors++;