PASN: Mark pubkey/comeback arguments constant for frame construction
These parameters are only copied to the frame, so mark them as constant. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
93ef7e8c91
commit
349e9eafbb
3 changed files with 5 additions and 5 deletions
|
@ -3428,8 +3428,8 @@ int wpa_pasn_add_rsne(struct wpabuf *buf, const u8 *pmkid, int akmp, int cipher)
|
|||
*/
|
||||
void wpa_pasn_add_parameter_ie(struct wpabuf *buf, u16 pasn_group,
|
||||
u8 wrapped_data_format,
|
||||
struct wpabuf *pubkey, bool compressed,
|
||||
struct wpabuf *comeback, int after)
|
||||
const struct wpabuf *pubkey, bool compressed,
|
||||
const struct wpabuf *comeback, int after)
|
||||
{
|
||||
struct pasn_parameter_ie *params;
|
||||
|
||||
|
|
|
@ -662,8 +662,8 @@ int wpa_pasn_add_rsne(struct wpabuf *buf, const u8 *pmkid,
|
|||
|
||||
void wpa_pasn_add_parameter_ie(struct wpabuf *buf, u16 pasn_group,
|
||||
u8 wrapped_data_format,
|
||||
struct wpabuf *pubkey, bool compressed,
|
||||
struct wpabuf *comeback, int after);
|
||||
const struct wpabuf *pubkey, bool compressed,
|
||||
const struct wpabuf *comeback, int after);
|
||||
|
||||
int wpa_pasn_add_wrapped_data(struct wpabuf *buf,
|
||||
struct wpabuf *wrapped_data_buf);
|
||||
|
|
|
@ -636,7 +636,7 @@ static u8 wpas_pasn_get_wrapped_data_format(struct wpas_pasn *pasn)
|
|||
|
||||
|
||||
static struct wpabuf * wpas_pasn_build_auth_1(struct wpa_supplicant *wpa_s,
|
||||
struct wpabuf *comeback)
|
||||
const struct wpabuf *comeback)
|
||||
{
|
||||
struct wpas_pasn *pasn = &wpa_s->pasn;
|
||||
struct wpabuf *buf, *pubkey = NULL, *wrapped_data_buf = NULL;
|
||||
|
|
Loading…
Reference in a new issue