61 Commits

Author SHA1 Message Date
Sosthène Guédon 6a2720d069 Add Channel helper type 2023-05-12 09:39:17 +02:00
Sosthène Guédon f23043dd29 Remove unused types.rs file 2023-05-12 09:39:01 +02:00
Sosthène Guédon a6f00115ad Fix typo: Responder => Requester 2023-05-03 10:56:35 +02:00
Sosthène Guédon 0c183f9287 Bump changelog 2023-02-14 10:45:07 +01:00
Sosthène Guédon 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édon 64b9f639a4 Prepare release 1.2.0 2023-02-07 02:32:23 +01:00
Sosthène Guédon ac7b277a6b Update changelog 2023-02-06 17:11:05 +01:00
Sosthène Guédon 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édon 41e45c3cc8 Fuzz target: fix clippy warnings 2023-02-06 16:54:51 +01:00
Sosthène Guédon 65b8921a1c Add docs and fuzzing to the CI pipeline 2023-02-06 16:54:51 +01:00
Sosthène Guédon 500c172202 Fix changelog 2023-02-06 16:54:51 +01:00
Sosthène Guédon a134aba771 Add clippy and fmt to the CI 2023-02-06 16:54:51 +01:00
Sosthène Guédon 28ac8cd592 Fix clippy warnings 2023-02-06 16:54:51 +01:00
Sosthène Guédon 923a731d31 Run cargo fmt 2023-02-06 16:54:51 +01:00
Sosthène Guédon a7e2049772 Update changelog 2023-02-06 16:09:20 +01:00
Sosthène Guédon 35653ecaa7 Add fuzzing 2023-02-06 16:09:20 +01:00
Sosthène Guédon 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 Stalder c82b6cfd1c Bump versions 0.1.1 2022-08-22 13:43:52 +02:00
Sosthène Guédon d1b8498ba3 Fix panic on response larger than interchanges::SIZE or response::SIZE 2022-08-22 13:43:52 +02:00
Sosthène Guédon e30785029e Add tests for response chaning and custom Le field 2022-08-22 13:43:52 +02:00
Sosthène Guédon ae33862987 Fix tests with response chaining
The absence of an `Le` field in a command means that no response is
expected. This commit adds 0x00 as an `Le` field to signify that the
maximum length possible is expected
2022-08-22 13:43:52 +02:00
Sosthène Guédon 97bd15f018 Fix reponse chaining
The responses now respect the `Le` field in the commands
2022-08-22 13:43:52 +02:00