-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support linux usb hid discovery (#10)
Optional support for discovering USB HID devices on Linux Requires passing "-tags=hidraw" when building to enable the fix. This commit changes the hid library used for accessing u2f USB devices from karalabe/hid to bearsh/hid. bearsh/hid has updated karalabe's libusb and hidapi code base with upstream libusb/libusb and libusb/hidapi, which among other things incorporate the changes in libusb/hidapi to support Usage Page and Usage on Linux with hidraw. (see https://github.com/libusb/hidapi/pull/139/files) that fix #1 when built with "-tags=hidraw", while maintaining the old behaviour when built without it. The fork includes fixes and enhancements related to vendoring modules. The commit also fixes the module directive in go.mod and adds the vendor directory resulting from executing "go mod vendor" * Remove vendor folder The vendor folder had been initially added to allow interoperation with older versions of Go and to make sure we had a copy of all deps living under the same file tree. Depending on the module users Go version, the first part may not hold. As for making sure we keep a copy of the dependencies, it should not be a problem if dependency repositories are not completely removed. Neither of these seem to be/should be an issue, so based on comment #10 (comment) this commit removes vendor/ Co-authored-by: Brendan Roy <[email protected]>
- Loading branch information
1 parent
ee0c355
commit 3ccdec8
Showing
5 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
module marshallbrekka/go-u2fhost | ||
module github.com/marshallbrekka/go-u2fhost | ||
|
||
go 1.14 | ||
|
||
require ( | ||
github.com/karalabe/hid v1.0.0 | ||
github.com/marshallbrekka/go-u2fhost v0.0.0-20200114212649-cc764c209ee9 | ||
github.com/bearsh/hid v1.3.0 | ||
github.com/sirupsen/logrus v1.6.0 | ||
github.com/spf13/cobra v1.0.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters