aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-22 05:13:41 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-22 05:13:41 (GMT)
commit7283fe1e2f8ee566478431ee004718ed6cfbb0fe (patch)
treebf01840b4d3088b73521500fa4fb91825a45050f
parent6b1951d1d14d873d40420386cfe55f0df1752453 (diff)
downloadhostap-history-7283fe1e2f8ee566478431ee004718ed6cfbb0fe.zip
hostap-history-7283fe1e2f8ee566478431ee004718ed6cfbb0fe.tar.gz
hostap-history-7283fe1e2f8ee566478431ee004718ed6cfbb0fe.tar.bz2
Mark in_data argument const for tls_connect_{encrypt,decrypt}().
-rw-r--r--wpa_supplicant/eap_fast.c2
-rw-r--r--wpa_supplicant/eap_peap.c2
-rw-r--r--wpa_supplicant/eap_ttls.c2
-rw-r--r--wpa_supplicant/tls.h4
-rw-r--r--wpa_supplicant/tls_openssl.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/wpa_supplicant/eap_fast.c b/wpa_supplicant/eap_fast.c
index 86d9058..76d7470 100644
--- a/wpa_supplicant/eap_fast.c
+++ b/wpa_supplicant/eap_fast.c
@@ -633,7 +633,7 @@ static void eap_fast_deinit(struct eap_sm *sm, void *priv)
static int eap_fast_encrypt(struct eap_sm *sm, struct eap_fast_data *data,
- int id, u8 *plain, size_t plain_len,
+ int id, const u8 *plain, size_t plain_len,
u8 **out_data, size_t *out_len)
{
int res;
diff --git a/wpa_supplicant/eap_peap.c b/wpa_supplicant/eap_peap.c
index b54a887..3ddf08b 100644
--- a/wpa_supplicant/eap_peap.c
+++ b/wpa_supplicant/eap_peap.c
@@ -193,7 +193,7 @@ static void eap_peap_deinit(struct eap_sm *sm, void *priv)
static int eap_peap_encrypt(struct eap_sm *sm, struct eap_peap_data *data,
- int id, u8 *plain, size_t plain_len,
+ int id, const u8 *plain, size_t plain_len,
u8 **out_data, size_t *out_len)
{
int res;
diff --git a/wpa_supplicant/eap_ttls.c b/wpa_supplicant/eap_ttls.c
index 31300a4..3318dc7 100644
--- a/wpa_supplicant/eap_ttls.c
+++ b/wpa_supplicant/eap_ttls.c
@@ -183,7 +183,7 @@ static void eap_ttls_deinit(struct eap_sm *sm, void *priv)
static int eap_ttls_encrypt(struct eap_sm *sm, struct eap_ttls_data *data,
- int id, u8 *plain, size_t plain_len,
+ int id, const u8 *plain, size_t plain_len,
u8 **out_data, size_t *out_len)
{
int res;
diff --git a/wpa_supplicant/tls.h b/wpa_supplicant/tls.h
index ce0b577..7e33fba 100644
--- a/wpa_supplicant/tls.h
+++ b/wpa_supplicant/tls.h
@@ -293,7 +293,7 @@ u8 * tls_connection_server_handshake(void *tls_ctx,
* Returns: Number of bytes written to out_data, -1 on failure
*/
int tls_connection_encrypt(void *tls_ctx, struct tls_connection *conn,
- u8 *in_data, size_t in_len,
+ const u8 *in_data, size_t in_len,
u8 *out_data, size_t out_len);
/**
@@ -308,7 +308,7 @@ int tls_connection_encrypt(void *tls_ctx, struct tls_connection *conn,
* Returns: Number of bytes written to out_data, -1 on failure
*/
int tls_connection_decrypt(void *tls_ctx, struct tls_connection *conn,
- u8 *in_data, size_t in_len,
+ const u8 *in_data, size_t in_len,
u8 *out_data, size_t out_len);
/**
diff --git a/wpa_supplicant/tls_openssl.c b/wpa_supplicant/tls_openssl.c
index 356ca41..dd6e32e 100644
--- a/wpa_supplicant/tls_openssl.c
+++ b/wpa_supplicant/tls_openssl.c
@@ -1132,7 +1132,7 @@ u8 * tls_connection_server_handshake(void *ssl_ctx,
int tls_connection_encrypt(void *ssl_ctx, struct tls_connection *conn,
- u8 *in_data, size_t in_len,
+ const u8 *in_data, size_t in_len,
u8 *out_data, size_t out_len)
{
int res;
@@ -1161,7 +1161,7 @@ int tls_connection_encrypt(void *ssl_ctx, struct tls_connection *conn,
int tls_connection_decrypt(void *ssl_ctx, struct tls_connection *conn,
- u8 *in_data, size_t in_len,
+ const u8 *in_data, size_t in_len,
u8 *out_data, size_t out_len)
{
int res;