aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tlsv1_common.c
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 /src/tls/tlsv1_common.c
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 'src/tls/tlsv1_common.c')
-rw-r--r--src/tls/tlsv1_common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tls/tlsv1_common.c b/src/tls/tlsv1_common.c
index 67b56df..326ff70 100644
--- a/src/tls/tlsv1_common.c
+++ b/src/tls/tlsv1_common.c
@@ -15,6 +15,7 @@
#include "includes.h"
#include "common.h"
+#include "crypto/sha1.h"
#include "x509v3.h"
#include "tlsv1_common.h"
@@ -265,3 +266,11 @@ const char * tls_version_str(u16 ver)
return "?";
}
+
+
+int tls_prf(const u8 *secret, size_t secret_len, const char *label,
+ const u8 *seed, size_t seed_len, u8 *out, size_t outlen)
+{
+ return tls_prf_sha1_md5(secret, secret_len, label, seed, seed_len, out,
+ outlen);
+}