76 Commits

Author SHA1 Message Date
Sosthène Guédon
edf19e997a Dispatch: update changelog and prepare release 0.3.1
The 0.3.0 release was also not linked to in the changelog
0.3.1
2025-02-12 15:35:35 +01:00
Sosthène Guédon
228013cecc Do not deselect applications if the application was not found 2025-02-12 14:58:52 +01:00
Robin Krahl
7e68a8d471 Release apdu-app v0.1.0 and apdu-dispatch v0.3.0 0.3.0 app-0.1.0 2024-10-18 09:47:43 +02:00
Robin Krahl
c675f9107a Replace iso7816::Command with iso7816::command::CommandView
This allows us to drop one generic parameter from the App trait and
potentially generate more efficient code.
2024-08-13 17:55:56 +02:00
Robin Krahl
6994b0ae96 Extract app trait into apdu-app
Currently, all APDU applications depend on apdu-dispatch to implement
the App trait.  This means that they also need to be updated if the
dispatch implementation is changed.  This causes unnecessary releases
and maintenance work.  By introducing the apdu-app crate, we can change
the dispatch implementation without affecting the applications.
2024-06-05 13:25:02 +02:00
Sosthène Guédon
1037f94b82 Fix clippy warnings 2024-02-16 11:50:13 +01:00
Sosthène Guédon
a4d938a33f Select the application even if the call to SELECT returns a non-success error code 2024-02-16 11:50:13 +01:00
Robin Krahl
a4b85418be Release v0.2.0 0.2.0 2023-11-22 14:43:28 +01:00
Sosthène Guédon
915fc23710 Update changelog 2023-11-08 11:59:32 +01:00
Sosthène Guédon
3fa6c64a6d Avoid use of .unwrap 2023-11-08 11:59:32 +01:00
Sosthène Guédon
d489d5e9a9 Fix compilation
The breakage was caused by a rebase
2023-11-08 11:59:32 +01:00
Sosthène Guédon
2264dd19dc Fix test compilation 2023-11-08 10:55:55 +01:00
Sosthène Guédon
066cb9493e Add interface to select call
This allows application that do not support NFC to reject operations comming from NFC
Previously Select calls could not be rejected.
2023-11-08 10:55:55 +01:00
Sosthène Guédon
f8d5e7738e Update changelog 2023-06-28 09:13:20 +02:00
Sosthène Guédon
52026467ef 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-28 09:13:20 +02:00
Sosthène Guédon
b72d5eb9f4 Add Channel helper type 2023-06-08 10:24:23 +02:00
Sosthène Guédon
e8a4bac865 Remove unused types.rs file 2023-06-08 10:24:23 +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