From c26ac189581c9c3d410ac927a43c598a9932beae Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 1 May 2018 17:42:33 +0300 Subject: [PATCH] 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 --- src/eap_server/eap_server_tls_common.c | 2 +- src/eap_server/eap_tls_common.h | 2 +- 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 61be3b54d..0dd15a9be 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 dc943eb20..e68cb2dc9 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);