mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
simutil: fixup adding const to data pointer
eap_sim_add_attribute() was not taking a const uint8_t * as it should.
This commit is contained in:
parent
32907c10df
commit
8ce787557f
@ -469,7 +469,7 @@ void eap_sim_client_error(struct eap_state *eap, enum eap_type type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t eap_sim_add_attribute(uint8_t *buf, enum eap_sim_at attr,
|
size_t eap_sim_add_attribute(uint8_t *buf, enum eap_sim_at attr,
|
||||||
uint8_t ptype, uint8_t *data, uint16_t dlen)
|
uint8_t ptype, const uint8_t *data, uint16_t dlen)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint8_t pos = 0;
|
uint8_t pos = 0;
|
||||||
|
@ -256,7 +256,7 @@ void eap_sim_client_error(struct eap_state *eap, enum eap_type type,
|
|||||||
* Returns the number of bytes written to buf.
|
* Returns the number of bytes written to buf.
|
||||||
*/
|
*/
|
||||||
size_t eap_sim_add_attribute(uint8_t *buf, enum eap_sim_at attr,
|
size_t eap_sim_add_attribute(uint8_t *buf, enum eap_sim_at attr,
|
||||||
uint8_t ptype, uint8_t *data, uint16_t dlen);
|
uint8_t ptype, const uint8_t *data, uint16_t dlen);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Verify a packets MAC
|
* Verify a packets MAC
|
||||||
|
Loading…
Reference in New Issue
Block a user