Commit Graph

416 Commits

Author SHA1 Message Date
Dain Nilsson 0d174f722f
Prepare 0.9.2 2021-10-14 12:34:02 +02:00
Dain Nilsson 36ddc05785
Update server example Pipfile.lock 2021-10-14 12:30:35 +02:00
Dain Nilsson 6e743bb7fb
Update Pipfile.lock. 2021-10-08 16:29:07 +02:00
Dain Nilsson 180db9ba59
Skip TPM test on cryptpgraphy >= 35 for now. 2021-10-08 16:28:37 +02:00
Dain Nilsson 9f5cab8c22
Add support for WEBAUTHN_API_VERSION_3. 2021-08-17 15:12:47 +02:00
Dain Nilsson c42d9628a4
Merge PR #114. 2021-04-28 12:38:52 +02:00
Dain Nilsson f7f12da932
Merge PR #115. 2021-04-28 09:09:54 +02:00
Enrik Berkhan 7777e061ea Linux: remove trailing zeroes from serial
The changes of #113 left trailing zeroes in the serial number and
product name on Linux.

The ioctl() for retrieving the attributes returns the string length on
success. Use the returned value to retrieve strings of the correct
length.
2021-04-27 17:51:39 +02:00
Enrik Berkhan d7dc74ab37 FreeBSD: rework /dev directory iteration.
Switch to glob.glob() as per review feedback.
2021-03-20 20:21:25 +01:00
Enrik Berkhan 98eb355339 FreeBSD: improve buffer initialization.
create_string_buffer() zeroes by default. Also avoids off-by-one
overallocation. (review feedback)

Use known buffer length when re-using buffer without re-initialization.
2021-03-20 20:20:19 +01:00
Enrik Berkhan bd36cbcf35 FreeBSD: remove dependency on uhid-freebsd. 2021-03-19 10:55:47 +01:00
Dain Nilsson 142587b3e6
Fix test on python2. 2021-03-17 11:16:50 +01:00
Dain Nilsson 23a2a50e2f
Merge PR #113. 2021-03-17 11:07:50 +01:00
Enrik Berkhan 14ff4354b7 Serial Number: Python 2 compatibility as per review feedback. 2021-03-16 20:14:38 +01:00
Enrik Berkhan ed5aa4cd07 Serial Number: Python style improvements from review feedback. 2021-03-16 20:03:34 +01:00
Enrik Berkhan 66132b7e0c Serial Number: rename getter serial() -> serial_number(). 2021-03-16 19:38:54 +01:00
Enrik Berkhan 730591e981 Serial Number: cosmetic cleanup. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 271d929a37 Serial Number: improve native string handling and decoding. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 48cd3ccc23 Serial Number: Return None instead of "".
Return `None` instead of empty string if there is no product name or
serial number. The same happens for certain errors like
UnicodeDecodeError.
2021-03-16 19:38:54 +01:00
Enrik Berkhan 71ba985b00 Trying to address flake8/black issues #3.
Now using correct black version.
2021-03-16 19:38:54 +01:00
Enrik Berkhan 17d9d95453 Trying to address flake8/black issues #2. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 323fd846ea Trying to address flake8/black issues. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 6bc40d1b6e USB HID: add product name and serial to descriptor.
Tested:

 - Linux

 - Windows

 - MacOS

 - OpenBSD

 - FreeBSD (needs updated uhid-freebsd)
   (product/serial number OK, but fragmented CTAP messages did not work
   in my VM setup?)
2021-03-16 19:38:54 +01:00
Dain Nilsson ce19ba598a
Don't use enum.auto (Python 2). 2021-03-16 14:59:59 +01:00
Dain Nilsson d5ce10f771
Add is_supported to easier check for feature support. 2021-03-15 15:24:42 +01:00
Dain Nilsson bd72e7aaab
Don't use new GET PIN TOKEN without permissions. 2021-02-22 11:40:33 +01:00
Dain Nilsson e9e56457d7
More UV updates.
- Sync CTAP error codes from spec.
- Forward event and on_keepalive to ClientPin for get_uv_token.
2021-02-21 13:53:18 +01:00
Dain Nilsson b68b660b87
Update UV handling in Fido2Client. 2021-02-20 18:39:57 +01:00
Dain Nilsson f29398e0c7
Handle listing when no credentials exist. 2021-02-20 18:39:32 +01:00
Dain Nilsson b1503b0358
Update pipfiles. 2021-02-16 08:53:55 +01:00
Dain Nilsson 2e3224d7a8
Skip tests on older Cryptography versions. 2021-02-16 08:41:30 +01:00
Dain Nilsson 6072d7002e
Bump version. 2021-02-03 10:15:44 +01:00
Dain Nilsson 06ed6116c7
Prepare 0.9.1 2021-02-03 09:53:53 +01:00
Dain Nilsson 28bbf0fd73
Add missing error codes. 2021-01-31 15:58:11 +01:00
Dain Nilsson 63c3d8e360
Bump version. 2021-01-20 10:58:57 +01:00
Dain Nilsson 3ee0104351
Prepare 0.9.0 release. 2021-01-20 10:45:43 +01:00
Dain Nilsson ac90526f1e
Update Pipfiles. 2021-01-20 10:36:26 +01:00
Dain Nilsson 38ba794cf3
Don't use PermissionError (not available on Python 2) 2021-01-20 09:34:43 +01:00
Dain Nilsson 6e52bde80e
Clean up HID logging. 2021-01-20 09:15:52 +01:00
Dain Nilsson 733c830326
Update NEWS. 2021-01-20 08:55:23 +01:00
Dain Nilsson 3a9bd6339f
Use namedtuple for AttestationResult. 2021-01-20 08:55:02 +01:00
Dain Nilsson 851012d29a
Mac: Don't log errors for non-CTAP devices in list_devices. 2021-01-15 09:33:21 +01:00
Dain Nilsson 244de4ddb7
Add find_library workaround for Big Sur. 2021-01-14 09:53:23 +01:00
Dain Nilsson a1ec5b3ee7
Add verify_attestation example. 2021-01-11 15:20:41 +01:00
Dain Nilsson 1fe7864317
Make attestation verification behavior pluggable. 2021-01-11 14:42:32 +01:00
Dain Nilsson 03031a5bad
Break up attestation into multiple files. 2020-12-29 21:17:08 +01:00
Dain Nilsson 24575bcd38
Add Apple Attestation. 2020-12-29 17:39:48 +01:00
Dain Nilsson a6152055b9
Return attestation type and trust chain. 2020-12-29 15:42:18 +01:00
Dain Nilsson 3b7e3e0007
Handle missing BasicConstraints (fix #106). 2020-12-17 13:08:07 +01:00
Dain Nilsson 2f977d6ae9
Clarify parameters a bit. 2020-12-17 13:00:49 +01:00