aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-08 14:41:47 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 09:33:58 (GMT)
commit42b72e04e106a69e932963c426bc3beb81f2606a (patch)
tree2aabd96f2dfae77db2b74d8f591885fd39a6a3cd /hostapd
parent866e388c56f741c95d83bcffed7e518667946205 (diff)
downloadhostap-06-42b72e04e106a69e932963c426bc3beb81f2606a.zip
hostap-06-42b72e04e106a69e932963c426bc3beb81f2606a.tar.gz
hostap-06-42b72e04e106a69e932963c426bc3beb81f2606a.tar.bz2
Mark shared secret const in RADIUS client routines
(cherry picked from commit 7d02e641574435f4ee09cba34ef48376d35c785d)
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/accounting.c3
-rw-r--r--hostapd/ieee802_11_auth.c2
-rw-r--r--hostapd/ieee802_1x.c5
3 files changed, 6 insertions, 4 deletions
diff --git a/hostapd/accounting.c b/hostapd/accounting.c
index c4c683d..ce71678 100644
--- a/hostapd/accounting.c
+++ b/hostapd/accounting.c
@@ -422,7 +422,8 @@ static void accounting_sta_get_id(struct hostapd_data *hapd,
*/
static RadiusRxResult
accounting_receive(struct radius_msg *msg, struct radius_msg *req,
- u8 *shared_secret, size_t shared_secret_len, void *data)
+ const u8 *shared_secret, size_t shared_secret_len,
+ void *data)
{
if (msg->hdr->code != RADIUS_CODE_ACCOUNTING_RESPONSE) {
printf("Unknown RADIUS message code\n");
diff --git a/hostapd/ieee802_11_auth.c b/hostapd/ieee802_11_auth.c
index bb88dd0..9aba1fe 100644
--- a/hostapd/ieee802_11_auth.c
+++ b/hostapd/ieee802_11_auth.c
@@ -383,7 +383,7 @@ static void hostapd_acl_expire(void *eloop_ctx, void *timeout_ctx)
*/
static RadiusRxResult
hostapd_acl_recv_radius(struct radius_msg *msg, struct radius_msg *req,
- u8 *shared_secret, size_t shared_secret_len,
+ const u8 *shared_secret, size_t shared_secret_len,
void *data)
{
struct hostapd_data *hapd = data;
diff --git a/hostapd/ieee802_1x.c b/hostapd/ieee802_1x.c
index 5b5458d..e943b27 100644
--- a/hostapd/ieee802_1x.c
+++ b/hostapd/ieee802_1x.c
@@ -1042,7 +1042,8 @@ static void ieee802_1x_decapsulate_radius(struct hostapd_data *hapd,
static void ieee802_1x_get_keys(struct hostapd_data *hapd,
struct sta_info *sta, struct radius_msg *msg,
struct radius_msg *req,
- u8 *shared_secret, size_t shared_secret_len)
+ const u8 *shared_secret,
+ size_t shared_secret_len)
{
struct radius_ms_mppe_keys *keys;
struct eapol_state_machine *sm = sta->eapol_sm;
@@ -1213,7 +1214,7 @@ ieee802_1x_search_radius_identifier(struct hostapd_data *hapd, u8 identifier)
*/
static RadiusRxResult
ieee802_1x_receive_auth(struct radius_msg *msg, struct radius_msg *req,
- u8 *shared_secret, size_t shared_secret_len,
+ const u8 *shared_secret, size_t shared_secret_len,
void *data)
{
struct hostapd_data *hapd = data;