Commit Graph

  • fd94b0539a introduce tx_empty() to transmit commands with empty payloads pedro martelletto 2020-01-10 17:00:57 +01:00
  • 2accdc9e31 let fido_tx handle properly for empty payloads as well James Zhang 2020-01-09 13:42:32 -08:00
  • daeb325913 fuzz/Makefile: clear previous corpora after syncing, and before packaging pedro martelletto 2020-01-09 13:26:15 +01:00
  • 1408b9562d make fuzzing libc-agnostic by providing a prng for pseudorandom failure of libc/libcbor/libcrypto wrapped symbols pedro martelletto 2020-01-08 15:04:03 +01:00
  • 8be49380d6 pull in strlcat from openbsd-compat pedro martelletto 2020-01-05 09:02:48 +01:00
  • 4dfc251067 tweak previous pedro martelletto 2020-01-05 08:41:47 +01:00
  • a4b69a2909 Make fido_log_xxd call log_handler once per line. This makes the xxd message stay in the same line in some log system. ikimonogakari 2020-01-03 10:57:58 -08:00
  • 1c7b70410d fuzz: shorten the code a bit; trigger fido_cbor_info_free(NULL) in dev_get_cbor_info() pedro martelletto 2020-01-04 08:30:35 +01:00
  • 1fd7c6b355 fido_strerr: make string match symbol Markus Friedl 2020-01-03 23:07:13 +01:00
  • 999f5e0ece make fuzz/build-coverage a bit smarter pedro martelletto 2020-01-02 10:56:45 +01:00
  • 1d3cf150dd fuzz: wrap more libcbor and openssl symbols pedro martelletto 2020-01-02 09:47:36 +01:00
  • 6ff12024b9 .travis/fuzz: drop -max_len=17408 here too pedro martelletto 2019-12-30 16:57:13 +01:00
  • 49024baa9e fuzz: implement a better way of enforcing max_len pedro martelletto 2019-12-30 16:15:54 +01:00
  • 22e7795362 fuzz: replace 'report' with a Makefile pedro martelletto 2019-12-30 10:56:57 +01:00
  • 36347900fd windows: escape CMAKE_CURRENT_SOURCE_DIR; gh#106 pedro martelletto 2019-12-30 09:05:09 +01:00
  • d44dde3251 travis/fuzz: adjust paths (again) after corpus change pedro martelletto 2019-12-29 14:35:22 +01:00
  • 431019b0f9 fuzz/corpus: restore directory structure expected by oss-fuzz pedro martelletto 2019-12-29 13:12:14 +01:00
  • 767cff7967 log init frame's data length instead of a useless struct size James Zhang 2019-12-26 17:39:30 -08:00
  • 16cf85c25c travis/fuzz: adjust paths pedro martelletto 2019-12-26 11:11:45 +01:00
  • 54d45ca5ac fuzz: sync results pedro martelletto 2019-12-26 10:48:23 +01:00
  • 179a81d0a6 fuzz: sync corpus pedro martelletto 2019-12-26 10:47:01 +01:00
  • fffa6e366f fuzz/harnesses: sync from oss-fuzz's gcloud buckets pedro martelletto 2019-12-26 10:46:29 +01:00
  • 279d0b9658 fuzz/report: use a patched version of libcbor pedro martelletto 2019-12-26 10:24:37 +01:00
  • a8b6e31141 fuzz/report: honour CC; allow PROFDATA and COV to be set pedro martelletto 2019-12-26 10:13:22 +01:00
  • 7aaab42411 fuzz/report: define OBJ pedro martelletto 2019-12-26 10:01:26 +01:00
  • 77afccdbb4 revert 4deda37f; oss-fuzz instances don't provide getrandom pedro martelletto 2019-12-24 12:10:00 +01:00
  • 71fa5709ff trim dead nested assignments; spotted by clang-10's analyzer pedro martelletto 2019-12-23 15:55:30 +01:00
  • ed66003bcd keep nauth_ok as the number of successful authentications, and introduce nfound to reflect the number of found credentials. use a switch to highlight the different steps taken based on the return value of u2f_authenticate_single. pedro martelletto 2019-12-21 13:28:59 +01:00
  • 17ec112d71 shuffle to avoid recording key_id in two places pedro martelletto 2019-12-21 13:22:33 +01:00
  • c86d67b75e style change James Zhang 2019-12-20 12:08:12 -08:00
  • 5f05c55cf1 record key_id for check-only u2f sign James Zhang 2019-12-20 12:05:49 -08:00
  • 14cc9d1726 travis: switch fuzz runners to bionic pedro martelletto 2019-12-22 12:57:07 +01:00
  • 4deda37fcd wrap getrandom when fuzzing pedro martelletto 2019-12-22 12:47:18 +01:00
  • ff9ca6f755 avoid silent truncation when calling getrandom pedro martelletto 2019-12-22 12:44:53 +01:00
  • b473ffad6f avoid accessing /dev/urandom to ease sandboxing pedro martelletto 2019-12-22 08:23:17 +01:00
  • f9a89b7d3e fuzz logging routines pedro martelletto 2019-12-20 15:40:16 +01:00
  • 363c53ee4c log: tweak a few more things pedro martelletto 2019-12-20 13:36:32 +01:00
  • ef9b87cccc export fido_set_log_handler pedro martelletto 2019-12-20 13:20:46 +01:00
  • ee09fc5b6e tweak a few things pedro martelletto 2019-12-20 13:16:30 +01:00
  • 8be165181a Add new fido_init_with_log to allow adding customized logger ikimonogakari 2019-12-17 10:54:34 -08:00
  • b5c9ab99d0 annotate data frames used by fuzzing harnesses pedro martelletto 2019-12-19 16:38:01 +01:00
  • ad1174c00b adjust fuzzing harnesses after ba946883 pedro martelletto 2019-12-18 16:15:47 +01:00
  • 2f704e444d hid_hidapi: only look at usage_page on mac and windows pedro martelletto 2019-12-18 11:24:59 +01:00
  • 099984ae5a add filtering of devices by device page James Zhang 2019-12-17 09:36:39 -08:00
  • 54cbc4c3bf hid_hidapi: more style changes pedro martelletto 2019-12-17 14:03:26 +01:00
  • c58efaa230 workaround libcrypto without .pc, like we do with libcbor pedro martelletto 2019-12-17 12:47:45 +01:00
  • 0c5d724ea5 complain if we can't figure out which hid backend to use pedro martelletto 2019-12-17 12:47:29 +01:00
  • 68f8db3f8a make static code analysis non-fatal until we sort false positives pedro martelletto 2019-12-17 12:45:12 +01:00
  • 6ac182910e if using hidapi, support flavours other than hidapi-hidraw pedro martelletto 2019-12-17 12:08:58 +01:00
  • de7d72c581 openbsd-compat: find endian.h under sys/ on freebsd pedro martelletto 2019-12-17 11:55:40 +01:00
  • 1dae487479 hid_hidapi: minor style changes pedro martelletto 2019-12-17 11:34:09 +01:00
  • ba94688308 fall back to ctap1 if the key claims to, but does not support ctap2 pedro martelletto 2019-12-16 13:39:22 +01:00
  • 32f07254d7 oss-fuzz works; revert 19efcef pedro martelletto 2019-12-16 09:23:12 +01:00
  • 19efcef320 break [am]san to test oss-fuzz; to be reverted pedro martelletto 2019-12-13 18:16:29 +01:00
  • b3c3043ce1 es256_pk_from_ptr: handle uncompressed points pedro martelletto 2019-12-13 16:38:49 +01:00
  • de478ef2f9 suggestions pedro martelletto 2019-12-12 08:29:37 +01:00
  • 6a115364d7 Fixed fuzzer error James Zhang 2019-12-11 13:10:11 -08:00
  • d78dbb5ebf Fix regress/ build errors James Zhang 2019-12-03 09:25:08 -08:00
  • 6f0c29c64b add fido_dev_io_rx_t and fido_dev_io_tx_t to fido_dev_io_t, which default to the original fido_tx and fido_rx functions James Zhang 2019-12-02 17:00:24 -08:00
  • 36df7fe227 move registration of fido_hid_manifest to fido_dev_info_manifest pedro martelletto 2019-12-11 10:28:22 +01:00
  • 891c0266d8 src/dev.c: style changes pedro martelletto 2019-12-11 10:21:35 +01:00
  • e2083d3b19 experimental uvtoken support; enable w/ -DFIDO_UVTOKEN pedro martelletto 2019-12-11 09:42:31 +01:00
  • adf233a272 fix wrong memory manipulation in fido_dev_unregister_manifest_func James Zhang 2019-12-10 10:31:46 -08:00
  • 8b5866ac29 preserve regress test executables on failure pedro martelletto 2019-12-10 15:56:53 +01:00
  • c31081cb58 append and zero le1 and le2 in iso7816_new(), as per spec pedro martelletto 2019-12-10 10:50:18 +01:00
  • f01dd27c26 src/hid_hidapi.c: style pedro martelletto 2019-12-09 11:10:52 +01:00
  • 53700999af restore whitespace :) pedro martelletto 2019-12-09 11:07:44 +01:00
  • 278b41fc56 src/extern.h: style changes pedro martelletto 2019-12-09 11:05:51 +01:00
  • 959fd7f55d src/extern.h: drop prototypes of renamed functions pedro martelletto 2019-12-09 11:03:59 +01:00
  • 279c616a95 src/extern.h: drop duplicates pedro martelletto 2019-12-09 11:03:00 +01:00
  • 6f757fabd7 src/dev.c: use TLS; otherwise cosmetic changes pedro martelletto 2019-12-09 10:58:33 +01:00
  • e876f8d114 src/dev.c: no need to include hidapi pedro martelletto 2019-12-09 10:46:09 +01:00
  • 740a2fa3b5 src/CMakeLists: drop no longer needed definitions pedro martelletto 2019-12-09 10:43:38 +01:00
  • 89ac852c12 openbsd-compat/readpassphrase.h: fix duplicate inclusion of stdlib.h pedro martelletto 2019-12-09 10:38:42 +01:00
  • df23898f3e more (squash w/ previous) pedro martelletto 2019-12-09 10:38:12 +01:00
  • 052777d41d examples/cred: style pedro martelletto 2019-12-09 10:26:17 +01:00
  • 06b1949d8a unify manifest interface in various hid_* files James Zhang 2019-12-06 13:07:31 -08:00
  • 3cf6b80cff remove fido_exit, add manifest unregister function, and make register function idempotent James Zhang 2019-12-06 12:59:29 -08:00
  • 5ef3573f9d remove duplicate cmake entries and unnecessary inclusions James Zhang 2019-12-06 11:58:41 -08:00
  • ff97c2a4ad fix broken device hidapi manifest function James Zhang 2019-12-06 11:34:23 -08:00
  • be9b24da57 merge in master as a normal commit James Zhang 2019-12-06 10:01:36 -08:00
  • 21f51bad01 fix unresolved references James Zhang 2019-11-29 15:41:52 -08:00
  • 7a63744f61 fix potential segfault and add missing fido_init calls James Zhang 2019-11-27 15:48:03 -08:00
  • 72b5853fbc fix build failures on mingw James Zhang 2019-11-27 13:56:58 -08:00
  • 4d30ecdd3d Add i/o to dev_info_t and register_dev_info_manfest function internally to allow linking in custom device enumeration and i/o. James Zhang 2019-11-18 18:41:21 -08:00
  • 40cc6cb05e Adding a static code analysis github workflow Gabriel Kihlman 2019-12-05 13:43:58 +01:00
  • 056cb49b0d move include_check to tools; check src/fido; add license pedro martelletto 2019-12-06 09:49:30 +01:00
  • df097d1183 zap fido/common.h pedro martelletto 2019-12-04 15:33:09 +01:00
  • e902cb7bcf add a script to check self-containment; drop before merging pedro martelletto 2019-12-04 15:20:55 +01:00
  • 88abe397f8 move type definitions to a single place pedro martelletto 2019-12-04 15:20:25 +01:00
  • 1c46c814e2 fuzz/mutator_aux.h and tools/extern.h bits pedro martelletto 2019-12-04 15:18:55 +01:00
  • 358f25b335 move common.h to fido/ to fix the inclusion problem of fido.h and fido/*.h James Zhang 2019-12-03 09:48:21 -08:00
  • 82dee1c7a0 make headers self-contained on linux James Zhang 2019-12-02 13:12:59 -08:00
  • abd215b5e3 minor tweaks pedro martelletto 2019-12-05 09:56:09 +01:00
  • 1fbf3a5c7b remove hid_init and hid_exit calls, and remove the unnecessary fido_exit function James Zhang 2019-12-04 11:06:09 -08:00
  • ba9f8d7903 modify license header James Zhang 2019-12-04 10:54:30 -08:00
  • f3b78fe39d integrate hidapi by adding src/hid_hidapi.c James Zhang 2019-12-03 10:49:04 -08:00
  • bd8e153895 fido.h: amend deprecation warning pedro martelletto 2019-12-02 11:24:35 +01:00
  • 39df03fd51 shush fuzz_cred; noticed by oss-fuzz pedro martelletto 2019-12-01 09:54:39 +01:00
  • 0c46145fae trim variable names from function prototypes pedro martelletto 2019-12-01 09:52:57 +01:00