Commit Graph

38 Commits

Author SHA1 Message Date
pedro martelletto
df23898f3e more (squash w/ previous) 2019-12-09 15:09:48 +01:00
pedro martelletto
052777d41d examples/cred: style 2019-12-09 15:09:48 +01:00
James Zhang
3cf6b80cff remove fido_exit, add manifest unregister function, and make register function idempotent 2019-12-09 15:09:48 +01:00
James Zhang
5ef3573f9d remove duplicate cmake entries and unnecessary inclusions 2019-12-09 15:09:48 +01:00
James Zhang
72b5853fbc fix build failures on mingw 2019-12-09 15:09:48 +01:00
James Zhang
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.
2019-12-09 15:09:48 +01:00
pedro martelletto
253cc43b0a LLONG_M{IN,AX} needs limits.h; pointed out by Pavol Rusnak 2019-11-13 15:45:42 +01:00
pedro martelletto
cc7631a9ed examples: add timeout support to {cred,assert} 2019-11-12 13:43:45 +01:00
pedro martelletto
dff0b6dc45 examples: show how to trigger fido_dev_cancel from a signal handler 2019-09-17 13:47:20 +02:00
Ed Maste
b68a966c4b Avoid sign extension when printing USB vendor or device ID
Cast vendor and device ID to uint16_t.  Previously vendor or device IDs
0x8000 or greater were displayed with a 0xffff prefix - for example,
product=0xffffa2ca.
2019-06-08 15:04:53 +02:00
pedro martelletto
6cc63b3b4a reflect fido's 3-state booleans 2019-05-28 14:13:47 +02:00
pedro martelletto
901073ad07 examples: add eddsa support 2019-05-15 17:15:29 +02:00
pedro martelletto
274b41af62 examples: don't fall through in write_{ec,rsa}_pubkey
don't fall through if [er]s256_pk_to_EVP_PKEY() or PEM_write_PUBKEY()
fails. problem spotted while trying to debug gh#20. add a few
consistency fixes while here.
2019-03-22 10:03:29 +01:00
pedro martelletto
53b0141501 hid: reimplement hidapi functionality 2019-03-01 10:59:47 +01:00
pedro martelletto
a9db8b7d60 examples/manifest: missing exit(0) 2019-02-27 07:45:40 +01:00
pedro martelletto
5e319f7b6c examples/util.c: cope with msvc read/write 2018-08-31 13:20:17 +02:00
pedro martelletto
de57a2a776 examples/util.c: include io.h when under msvc
needed to get open/read/write prototypes.
2018-08-30 13:22:54 +02:00
pedro martelletto
a9822f020c make unistd.h conditional on its presence 2018-08-30 12:47:54 +02:00
pedro martelletto
36978df16d statically link examples
makes life easier on windows, since there's no rpath support and
libfido2 might not be installed system-wide.
2018-08-29 09:54:09 +02:00
pedro martelletto
0b4a48260f pull getopt from openssh; required for msvc build 2018-08-27 15:27:51 +02:00
pedro martelletto
d8d70adb82 implement support for fido2's hmac-secret extension 2018-07-27 13:56:54 +02:00
pedro martelletto
6315c583b7 move openbsd-compat sources 2018-06-18 11:55:39 +02:00
pedro martelletto
6e7c92b209 Swap the order of the arguments in es256_pk_from_EC_KEY() and
rs256_pk_from_RSA() for consistency with the rest of the API.
2018-05-25 17:39:11 +02:00
pedro martelletto
a64bf723d9 Fix the error codes returned by es256_pk_from_EC_KEY() and
rs256_pk_from_RSA().
2018-05-25 17:39:11 +02:00
pedro martelletto
6694294914 Use timingsafe_bcmp() to check an assertion's RP. 2018-05-22 09:25:16 +02:00