Skip to content

Conversation

@metsma
Copy link
Contributor

@metsma metsma commented Aug 6, 2024

WE2-1007

Signed-off-by: Raul Metsma [email protected]

if (size() > MAX_DATA_SIZE) {
throw std::invalid_argument("Command chaining and extended lenght not supported");
}
insert(begin(), {cls, ins, p1, p2, static_cast<byte_type>(size())});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it so that when using the T=0 protocol, the Le field should be omitted? Shouldn't you handle protocol differences here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have many cases where we send with T=0 Le field and do not have any issues reported:
https://github.com/web-eid/libelectronic-id/blob/main/src/electronic-ids/pcsc/EIDIDEMIA.cpp#L146-L152
https://github.com/web-eid/libelectronic-id/blob/main/src/electronic-ids/pcsc/FinEID.cpp#L161-L162
If this is issue we should handle this in transfer()

Copy link
Member

@mrts mrts Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer that we test T=0 properly after merging.

mrts
mrts previously approved these changes Sep 20, 2024
@mrts mrts self-requested a review September 24, 2024 16:22
@mrts mrts dismissed their stale review September 24, 2024 16:23

There are open questions still.

@metsma metsma force-pushed the apdu branch 3 times, most recently from d6ae2af to fa0cc2c Compare January 14, 2025 18:33
metsma and others added 3 commits January 14, 2025 20:47
WE2-1007

Signed-off-by: Raul Metsma <[email protected]>
WE2-1007

Signed-off-by: Mart Somermaa <[email protected]>
@mrts mrts merged commit 9fffbe6 into web-eid:main Jan 14, 2025
7 checks passed
@metsma metsma deleted the apdu branch January 14, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants