aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-05-01 14:42:33 (GMT)
committerJouni Malinen <j@w1.fi>2018-05-01 14:43:24 (GMT)
commitc26ac189581c9c3d410ac927a43c598a9932beae (patch)
treea9ca13947210fbe2771c35934bc257a872323c8e
parent34c6949fb73fff4ed9461ef390498c31b42e8178 (diff)
downloadhostap-c26ac189581c9c3d410ac927a43c598a9932beae.zip
hostap-c26ac189581c9c3d410ac927a43c598a9932beae.tar.gz
hostap-c26ac189581c9c3d410ac927a43c598a9932beae.tar.bz2
Mark eap_server_tls_derive_key() label argument const
This value is going to be used only with a helper function that takes it in as a const value, so use the same style here to simplify callers in upcoming TLS v1.3 changes. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/eap_server/eap_server_tls_common.c2
-rw-r--r--src/eap_server/eap_tls_common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/eap_server/eap_server_tls_common.c b/src/eap_server/eap_server_tls_common.c
index 61be3b5..0dd15a9 100644
--- a/src/eap_server/eap_server_tls_common.c
+++ b/src/eap_server/eap_server_tls_common.c
@@ -107,7 +107,7 @@ void eap_server_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data)
u8 * eap_server_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data,
- char *label, size_t len)
+ const char *label, size_t len)
{
u8 *out;
diff --git a/src/eap_server/eap_tls_common.h b/src/eap_server/eap_tls_common.h
index dc943eb..e68cb2d 100644
--- a/src/eap_server/eap_tls_common.h
+++ b/src/eap_server/eap_tls_common.h
@@ -73,7 +73,7 @@ int eap_server_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data,
int verify_peer, int eap_type);
void eap_server_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data);
u8 * eap_server_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data,
- char *label, size_t len);
+ const char *label, size_t len);
u8 * eap_server_tls_derive_session_id(struct eap_sm *sm,
struct eap_ssl_data *data, u8 eap_type,
size_t *len);