Commit Graph
63 Commits
Author SHA1 Message Date
Sosthène Guédon 9e46e9dd79 Update changelog 2023-06-28 09:02:13 +02:00
Sosthène Guédon 290e0be036 Reject commands from multiple transports
Apdu-dispatch does not have proper support for multiple concurrent
transport since there are no separate selection for each app.

The proper solution would be to have separate buffers and selection per transport,
but that would also require apps to actually deal with multiple interfaces, which they currently do not.

This patch makes it so that the first command sets the used transport, and that
 any command comming from another transport will be rejected.
2023-06-27 17:52:38 +02:00
Sosthène Guédonandsosthene-nitrokey b72d5eb9f4 Add Channel helper type 2023-06-08 10:24:23 +02:00
Sosthène Guédonandsosthene-nitrokey e8a4bac865 Remove unused types.rs file 2023-06-08 10:24:23 +02:00
Sosthène Guédonandsosthene-nitrokey a6f00115ad Fix typo: Responder => Requester 2023-05-03 10:56:35 +02:00
Sosthène GuédonandRobin Krahl 0c183f9287 Bump changelog 2023-02-14 10:45:07 +01:00
Sosthène GuédonandRobin Krahl cf6fedc5b2 Migrate to interchange 0.3.0 2023-02-14 10:45:07 +01:00
Nicolas Stalder fcd5ad38a1 Fix URLs in Cargo.toml 0.1.2 2023-02-07 02:35:27 +01:00
Nicolas Stalder 5d42b24c90 Fix erroneous version 2023-02-07 02:33:55 +01:00
Sosthène GuédonandNicolas Stalder 64b9f639a4 Prepare release 1.2.0 2023-02-07 02:32:23 +01:00
Sosthène Guédonandsosthene-nitrokey ac7b277a6b Update changelog 2023-02-06 17:11:05 +01:00
Sosthène Guédonandsosthene-nitrokey fa83d6bca5 Add a new request type for incorrect commands and return errors for invalid Select commands 2023-02-06 17:11:05 +01:00
Sosthène Guédonandsosthene-nitrokey 41e45c3cc8 Fuzz target: fix clippy warnings 2023-02-06 16:54:51 +01:00
Sosthène Guédonandsosthene-nitrokey 65b8921a1c Add docs and fuzzing to the CI pipeline 2023-02-06 16:54:51 +01:00
Sosthène Guédonandsosthene-nitrokey 500c172202 Fix changelog 2023-02-06 16:54:51 +01:00
Sosthène Guédonandsosthene-nitrokey a134aba771 Add clippy and fmt to the CI 2023-02-06 16:54:51 +01:00
Sosthène Guédonandsosthene-nitrokey 28ac8cd592 Fix clippy warnings 2023-02-06 16:54:51 +01:00
Sosthène Guédonandsosthene-nitrokey 923a731d31 Run cargo fmt 2023-02-06 16:54:51 +01:00
Sosthène Guédonandsosthene-nitrokey a7e2049772 Update changelog 2023-02-06 16:09:20 +01:00
Sosthène Guédonandsosthene-nitrokey 35653ecaa7 Add fuzzing 2023-02-06 16:09:20 +01:00
Sosthène Guédonandsosthene-nitrokey fe40478467 Replace Aid::new with Aid::try_new
Fixes #7
2023-02-06 16:09:20 +01:00
Robin Krahl f3533d1722 Fix maximum response length check
To decide whether we send out the response in whole or in chunks, we not
only have to compare the length with the maximum length supported by
interchange but also with the maximum response length specified in the
request APDU.
2023-02-06 15:47:27 +01:00
Nicolas StalderandNicolas Stalder c82b6cfd1c Bump versions 0.1.1 2022-08-22 13:43:52 +02:00
Sosthène GuédonandNicolas Stalder d1b8498ba3 Fix panic on response larger than interchanges::SIZE or response::SIZE 2022-08-22 13:43:52 +02:00
Sosthène GuédonandNicolas Stalder e30785029e Add tests for response chaning and custom Le field 2022-08-22 13:43:52 +02:00