aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tlsv1_client.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-03-16 16:40:49 (GMT)
committerJouni Malinen <j@w1.fi>2019-03-16 16:52:09 (GMT)
commit32f4760664c53db6312a425e73bac41d1e88f366 (patch)
tree645c138f2c74188783f6f26d7481391c0c51ba13 /src/tls/tlsv1_client.h
parenta916ff5cd819ad4410374f421eb4f04fa683604a (diff)
downloadhostap-32f4760664c53db6312a425e73bac41d1e88f366.zip
hostap-32f4760664c53db6312a425e73bac41d1e88f366.tar.gz
hostap-32f4760664c53db6312a425e73bac41d1e88f366.tar.bz2
TLS: Add support for RFC 5705 TLS exporter context with internal TLS
Use the provided context, if any, to generate the seed for TLS PRF. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/tls/tlsv1_client.h')
-rw-r--r--src/tls/tlsv1_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/tlsv1_client.h b/src/tls/tlsv1_client.h
index 40fa6c7..7fcc256 100644
--- a/src/tls/tlsv1_client.h
+++ b/src/tls/tlsv1_client.h
@@ -1,6 +1,6 @@
/*
* TLS v1.0/v1.1/v1.2 client (RFC 2246, RFC 4346, RFC 5246)
- * Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2006-2019, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
@@ -19,6 +19,7 @@ struct tlsv1_client * tlsv1_client_init(void);
void tlsv1_client_deinit(struct tlsv1_client *conn);
int tlsv1_client_established(struct tlsv1_client *conn);
int tlsv1_client_prf(struct tlsv1_client *conn, const char *label,
+ const u8 *context, size_t context_len,
int server_random_first, u8 *out, size_t out_len);
u8 * tlsv1_client_handshake(struct tlsv1_client *conn,
const u8 *in_data, size_t in_len,