mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
mka: Mark ieee802_1x_kay_create_mka() ckn and cak arguments const
These structures are not modified or freed (i.e., only data from them is copied), so mark the arguments const to document this a bit more clearly now that there was a memory leak in one of the callers to this function. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
22151b111b
commit
cce16e43f8
@ -3269,8 +3269,9 @@ ieee802_1x_kay_deinit(struct ieee802_1x_kay *kay)
|
|||||||
* ieee802_1x_kay_create_mka -
|
* ieee802_1x_kay_create_mka -
|
||||||
*/
|
*/
|
||||||
struct ieee802_1x_mka_participant *
|
struct ieee802_1x_mka_participant *
|
||||||
ieee802_1x_kay_create_mka(struct ieee802_1x_kay *kay, struct mka_key_name *ckn,
|
ieee802_1x_kay_create_mka(struct ieee802_1x_kay *kay,
|
||||||
struct mka_key *cak, u32 life,
|
const struct mka_key_name *ckn,
|
||||||
|
const struct mka_key *cak, u32 life,
|
||||||
enum mka_created_mode mode, Boolean is_authenticator)
|
enum mka_created_mode mode, Boolean is_authenticator)
|
||||||
{
|
{
|
||||||
struct ieee802_1x_mka_participant *participant;
|
struct ieee802_1x_mka_participant *participant;
|
||||||
|
@ -241,7 +241,8 @@ void ieee802_1x_kay_deinit(struct ieee802_1x_kay *kay);
|
|||||||
|
|
||||||
struct ieee802_1x_mka_participant *
|
struct ieee802_1x_mka_participant *
|
||||||
ieee802_1x_kay_create_mka(struct ieee802_1x_kay *kay,
|
ieee802_1x_kay_create_mka(struct ieee802_1x_kay *kay,
|
||||||
struct mka_key_name *ckn, struct mka_key *cak,
|
const struct mka_key_name *ckn,
|
||||||
|
const struct mka_key *cak,
|
||||||
u32 life, enum mka_created_mode mode,
|
u32 life, enum mka_created_mode mode,
|
||||||
Boolean is_authenticator);
|
Boolean is_authenticator);
|
||||||
void ieee802_1x_kay_delete_mka(struct ieee802_1x_kay *kay,
|
void ieee802_1x_kay_delete_mka(struct ieee802_1x_kay *kay,
|
||||||
|
Loading…
Reference in New Issue
Block a user