diff options
author | Simon Rozman <simon@rozman.si> | 2020-05-02 08:49:35 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-02 01:50:47 -0600 |
commit | fdba6c183aa8d4c19680f436517624038a6f3be5 (patch) | |
tree | 07a8a32a00d3c751bd88d98ee8448539bb95d74e /ipc | |
parent | 250b9795f3670981f5e276773307e9638ec0aee2 (diff) |
wintun: make remaining HWID comparisons case insensitive
c85e4a410f27986a2967a49c0155633c716bf3ca introduced preliminary HWID
checking to speed up Wintun adapter enumeration. However, all HWID are
case insensitive by Windows convention.
Furthermore, a device might have multiple HWIDs. When DevInfo's
DeviceRegistryProperty(SPDRP_HARDWAREID) method returns []string, all
strings returned should be checked against given hardware ID.
This issue was discovered when researching Wintun and wireguard-go on
Windows 10 ARM64. The Wintun adapter was created using devcon.exe
utility with "wintun" hardware ID, causing wireguard-go fail to
enumerate the adapter properly.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions