Commit Graph

  • 5e6149efc3 Fix most clippy issues Manish Goregaokar 2017-08-10 14:04:37 -07:00
  • 38dd1b26ba Merge pull request #31 from jcjones/asan J.C. Jones 2017-08-09 12:02:07 -07:00
  • 69d933b33a Be less verbose with ASAN builds J.C. Jones 2017-08-09 10:56:39 -07:00
  • 69d428c2ed For nightly builds, run the tests with ASAN. J.C. Jones 2017-08-09 06:51:59 -07:00
  • f2c806e985 Fix 32-bit builds on Windows J.C. Jones 2017-08-08 17:20:17 -07:00
  • f7f081935d Remove some duplicate code from DeviceMap implementations Tim Taubert 2017-08-08 16:22:57 +02:00
  • 27325341ae Some more minor cleanup Tim Taubert 2017-08-08 15:26:51 +02:00
  • 7b2b253ae1 Clean up u2fproto and tests Tim Taubert 2017-08-08 15:15:15 +02:00
  • a05cacbf95 macOS: fix UAF for real by boxing Device.scratch_buf[] Tim Taubert 2017-08-04 17:33:40 +02:00
  • 79d09e9f79 Make u2f_version_is_v2() return an io::Result<bool> Tim Taubert 2017-08-04 11:38:16 +02:00
  • 6ea2461597 Remove IOHIDDeviceID and make IOHIDDeviceRef a proper struct that derives what we need Tim Taubert 2017-08-04 00:12:03 +02:00
  • 58508c80e2 Give examples/main timeouts in milliseconds Tim Taubert 2017-08-03 22:53:01 +02:00
  • aeddb5cfa8 Fixes #8: Add runloop tests Tim Taubert 2017-08-03 22:49:48 +02:00
  • 9537c9ac48 macOS: Add DeviceMap to track devices in the platform manager Tim Taubert 2017-08-03 16:22:19 +02:00
  • 2e9262e0ed macOS: Move HID input report handling to the Device Tim Taubert 2017-08-03 16:06:50 +02:00
  • bd8c4a7e1c macOS: fix UAF by storing scratch_buf[] with the Device Tim Taubert 2017-08-03 15:38:31 +02:00
  • e62c5fe880 macOS: remove unsafe Report type and use Vec<u8> instead Tim Taubert 2017-08-03 15:36:01 +02:00
  • cbea18b5d0 Move set_report() into Device::write() Tim Taubert 2017-08-03 15:28:27 +02:00
  • 38ea83fb0b Fixes #28: Start fuzzing U2F HID protocol parsers and writers Tim Taubert 2017-08-03 15:13:13 +02:00
  • 496005e976 Merge pull request #30 from ttaubert/u2f-packets Tim Taubert 2017-08-03 15:15:07 +02:00
  • 4ceee629ab Simplify U2F packet communication, remove unused fields Tim Taubert 2017-08-02 23:05:27 +02:00
  • 65adea0769 Merge pull request #27 from ttaubert/issue/26-unsafe-hid-types Tim Taubert 2017-08-02 19:42:08 +02:00
  • 3160df4554 Fixes #26: Copy bytes instead of using unsafe casting for HID types Tim Taubert 2017-08-01 16:13:22 +02:00
  • 9111bac96d OSX HID interaction cleanup J.C. Jones 2017-07-31 12:37:25 -07:00
  • 34ebfe9861 Be safer with from_u8_array and byte layouts J.C. Jones 2017-07-31 16:07:42 -07:00
  • 0c69e5ac5a Fix #24: Refactor unwrap instances to be safe J.C. Jones 2017-07-31 13:13:50 -07:00
  • 5c49632b3d Let the C API generate and return random transaction IDs (instead of taking them as arguments) Tim Taubert 2017-07-28 11:57:58 +02:00
  • d3c94f6bc6 Correct J.C.'s email address J.C. Jones 2017-07-27 12:13:13 -07:00
  • 45c0894a47 Merge pull request #23 from jcjones/rustfmt Tim Taubert 2017-07-27 19:31:29 +02:00
  • 6da667a37f Run rustfmt, and configure Travis to enforce rustfmt. J.C. Jones 2017-07-27 09:05:15 -07:00
  • 8f202ca539 Small cleanup in macos::Device::read() Tim Taubert 2017-07-14 19:40:42 +02:00
  • cd93c65733 Code cleanup and some reorganization Tim Taubert 2017-07-14 15:43:10 +02:00
  • 0027eaa5c8 Fixes #22: Add ability to check whether a device monitor is still alive Tim Taubert 2017-07-14 15:12:53 +02:00
  • b5f2de37bb Fixes #21: Update Windows platform manager to new API Tim Taubert 2017-07-14 10:27:31 +02:00
  • f8b5e2256e Update readme J.C. Jones 2017-07-12 11:18:45 -07:00
  • a4d6ef0104 Remove libudev-sys override, only needed when building Gecko Tim Taubert 2017-07-12 10:59:51 +02:00
  • 3983d1c321 Let sign() take multiple key handles and return the one that signed Tim Taubert 2017-07-11 16:14:11 +02:00
  • 27f2b7b8c4 Add U2FKeyHandles to C API Tim Taubert 2017-07-11 15:33:33 +02:00
  • 9fb318a15e Move main.rs to examples/ Tim Taubert 2017-07-11 14:29:54 +02:00
  • 18ddea68dc Add utils shared between all platforms Tim Taubert 2017-07-11 12:20:14 +02:00
  • 100c5f6ef4 Update macOS platform manager and monitor APIs to work with callbacks Tim Taubert 2017-07-11 12:01:46 +02:00
  • eb312fa36e Implement proper WorkQueue and callbacks, update C API Tim Taubert 2017-07-04 22:03:54 +02:00
  • 89aec0f1bc Remove unused generic type param Tim Taubert 2017-06-21 14:42:09 +02:00
  • dc8cc7ffac macOS: Implement/fix sync platform API Tim Taubert 2017-06-20 21:32:39 +02:00
  • 4aa1a22ea4 Remove mach dependency Tim Taubert 2017-06-20 21:32:24 +02:00
  • a0c3a92d2f Remove nix and bitflags dependencies Tim Taubert 2017-06-20 15:33:45 +02:00
  • 217accc870 Add first rough C API Tim Taubert 2017-06-20 12:03:09 +02:00
  • 9fe604ebf6 Make U2FManager API sync Tim Taubert 2017-06-20 12:02:25 +02:00
  • faf54245d3 Override libudev-sys with our own fork that uses dlopen() Tim Taubert 2017-06-20 12:01:08 +02:00
  • d9196a767d Dependencies cleanup Tim Taubert 2017-06-13 12:15:04 +02:00
  • e6ea6461dc Merge pull request #18 from jcjones/7-refactor_u2fprotocol Tim Taubert 2017-06-13 11:34:31 +02:00
  • 218a47b1e3 Fix #7 - Move U2F protocol functions out of lib.rs into u2fprotocol.rs J.C. Jones 2017-06-12 18:30:15 +02:00
  • f14df129c9 Reorder module/crate declarations J.C. Jones 2017-06-12 13:45:12 +02:00
  • d49013e701 Small cleanup for macOS monitor events Tim Taubert 2017-05-23 20:30:40 +02:00
  • e9779596d2 Initial Windows support Tim Taubert 2017-05-22 21:38:57 +02:00
  • a43886755d Small Linux cleanup Tim Taubert 2017-05-22 18:49:23 +02:00
  • a27c16aab1 Move the OSX hotplug check to be on the tail end of the device loop J.C. Jones 2017-05-17 13:33:43 -07:00
  • 6210b90cc2 Fix #16 - Improve logging J.C. Jones 2017-05-17 12:05:03 -07:00
  • a8e90c7a86 Fix #1 - Minimize races that might access removed devices on OSX J.C. Jones 2017-05-17 11:26:15 -07:00
  • d6ac8b45a5 Add a test for ping_device J.C. Jones 2017-05-17 10:11:03 -07:00
  • 20d794b04a Fix #14: Don't send real data unnecessarily J.C. Jones 2017-05-17 10:09:15 -07:00
  • fb07a83df3 Fix #15: Resolve randomness in unit tests J.C. Jones 2017-05-17 09:14:22 -07:00
  • dff5fec3f5 Cleanup OSX Device Boxed Pointer J.C. Jones 2017-05-17 08:23:26 -07:00
  • c498cee4db Clean up public API exposed by the u2fhid module Tim Taubert 2017-05-17 16:10:48 +02:00
  • b5dd3ad2ee ref #7: Moved U2FManager to src/manager.rs Tim Taubert 2017-05-17 16:03:15 +02:00
  • 60facaf0e9 Small follow-up / cleanup Tim Taubert 2017-05-17 15:39:18 +02:00
  • ced35bc803 Fixes #5 and #13: Use IOHID device matching instead of filtering manually Tim Taubert 2017-05-17 15:35:55 +02:00
  • 417e3355bd fixes #4: lib.rs::init_device must use a real nonce Tim Taubert 2017-05-17 10:59:54 +02:00
  • 25e09d6563 Speed up and simplify communication in macOS HID device monitor Tim Taubert 2017-05-17 09:27:02 +02:00
  • f155002621 Small cleanup for the macOS device monitor Tim Taubert 2017-05-16 18:18:16 +02:00
  • 26a2eb9428 Merge pull request #3 from jcjones/travis J.C. Jones 2017-05-16 09:10:19 -07:00
  • ebfd017558 Resolve #2 - Support TravisCI J.C. Jones 2017-05-16 08:36:06 -07:00
  • 4aab56a4cb Kick travis J.C. Jones 2017-05-16 08:24:28 -07:00
  • bd6acd568d Add travis script J.C. Jones 2017-05-16 08:06:26 -07:00
  • 365d99ecf1 No longer depend on local core-foundation-sys on OSX J.C. Jones 2017-05-16 07:49:23 -07:00
  • 9aacf0fc26 First steps towards a new U2FManager interface Tim Taubert 2017-05-16 05:20:36 +02:00
  • fc9aade869 Rewrite and reorganize most of the libudev code for Linux Tim Taubert 2017-05-15 16:41:48 +02:00
  • 365d7b962e Update the textual thread design J.C. Jones 2017-05-12 13:49:37 -07:00
  • 4e45151a5c Remove the find keys method J.C. Jones 2017-05-12 08:57:48 -07:00
  • f3c4e7922b Add sign, and avoid shutdown hangs J.C. Jones 2017-05-11 16:28:48 -07:00
  • 434abb0d25 More fix J.C. Jones 2017-05-11 10:49:28 -07:00
  • 9b5eeefd1e Set a common API for the 'main' method J.C. Jones 2017-05-11 10:34:23 -07:00
  • e4df17034d Only use callbacks to add/remove devices J.C. Jones 2017-05-11 08:35:03 -07:00
  • cf7325aa54 Remove unnecessary status functions J.C. Jones 2017-05-11 08:16:44 -07:00
  • 64c0f5353e Fix perform_job_for_key state transition J.C. Jones 2017-05-10 22:43:39 -07:00
  • c9bdc9a727 Add a status field to the U2FDevice trait J.C. Jones 2017-05-10 22:19:35 -07:00
  • e19941e126 Move devices to be initialized by main, not find_keys J.C. Jones 2017-05-10 21:26:13 -07:00
  • 0cc7762a87 Fix memory crash in OSX J.C. Jones 2017-05-09 15:24:44 -07:00
  • 89b0d9f182 Change the OSX model to use a single runloop J.C. Jones 2017-04-26 14:34:26 -07:00
  • 00e27c0df3 Don't depend on the byteorder crate to parse device usage information Tim Taubert 2017-05-09 16:32:24 -07:00
  • 13457548e9 Fix HID communication on Linux Tim Taubert 2017-05-09 12:56:18 -07:00
  • ef0f5ce55c Merge branch 'test_fixes' J.C. Jones 2017-05-09 09:39:38 -07:00
  • 41a81f3543 Fix U2F device detection on Linux Tim Taubert 2017-05-09 09:26:57 -07:00
  • da275b1586 Fix test: Continuation numbering starts at 0 J.C. Jones 2017-05-09 08:18:54 -07:00
  • 4f34d1b76c Fix for non-OSX platforms J.C. Jones 2017-05-09 08:03:32 -07:00
  • 684625bb25 Use multiple keys, but not dynamic changes J.C. Jones 2017-04-20 11:27:39 -07:00
  • 0eb4a3aa8a Fix (almost) all warnings J.C. Jones 2017-04-19 15:50:20 -07:00
  • c6dedbeb6d Break up main J.C. Jones 2017-04-19 15:21:34 -07:00
  • 70aaab417a This commit can, in the trivial case, register and sign with a single Security Key assuming: J.C. Jones 2017-04-19 14:12:22 -07:00
  • 9c45cdb480 Make Register work for at least a single token. J.C. Jones 2017-04-18 16:40:36 -07:00