mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-20 12:39:25 +01:00
wscutil: Add parser for ENROLLEE_NONCE
This commit is contained in:
parent
2aaff15987
commit
c787a4c5b8
@ -275,6 +275,15 @@ static bool extract_device_password_id(struct wsc_attr_iter *iter, void *data)
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool extract_enrollee_nonce(struct wsc_attr_iter *iter, void *data)
|
||||
{
|
||||
if (wsc_attr_iter_get_length(iter) != 16)
|
||||
return false;
|
||||
|
||||
memcpy(data, wsc_attr_iter_get_data(iter), 16);
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool extract_mac_address(struct wsc_attr_iter *iter, void *data)
|
||||
{
|
||||
if (wsc_attr_iter_get_length(iter) != 6)
|
||||
@ -432,6 +441,8 @@ static attr_handler handler_for_type(enum wsc_attr type)
|
||||
return extract_device_name;
|
||||
case WSC_ATTR_DEVICE_PASSWORD_ID:
|
||||
return extract_device_password_id;
|
||||
case WSC_ATTR_ENROLLEE_NONCE:
|
||||
return extract_enrollee_nonce;
|
||||
case WSC_ATTR_MAC_ADDRESS:
|
||||
return extract_mac_address;
|
||||
case WSC_ATTR_MANUFACTURER:
|
||||
|
Loading…
Reference in New Issue
Block a user