mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-19 10:33:05 -05:00
WPS: Get AP PIN from configuration instead of using hardcoded value
This commit is contained in:
parent
728fae1631
commit
23f53f2a81
@ -207,8 +207,10 @@ static void * eap_wsc_init(struct eap_sm *sm)
|
|||||||
"yet fully supported - using test values");
|
"yet fully supported - using test values");
|
||||||
u8 uuid_e[UUID_LEN];
|
u8 uuid_e[UUID_LEN];
|
||||||
os_memset(uuid_e, 0, UUID_LEN);
|
os_memset(uuid_e, 0, UUID_LEN);
|
||||||
wps_registrar_add_pin(data->wps_ctx->registrar, uuid_e,
|
if (cfg.pin) {
|
||||||
(const u8 *) "12345670", 8);
|
wps_registrar_add_pin(data->wps_ctx->registrar, uuid_e,
|
||||||
|
cfg.pin, cfg.pin_len);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user