Skip to content

Conversation

@simo5
Copy link
Member

@simo5 simo5 commented Mar 4, 2025

Also refactors how operations are handled to fix #168

@simo5 simo5 requested a review from Jakuje March 4, 2025 23:30
@simo5 simo5 changed the title REduce the number of unimplemnetd functions Reduce the number of unimplemnetd functions Mar 4, 2025
@simo5 simo5 force-pushed the more_fns branch 2 times, most recently from 421d318 to 193042f Compare March 4, 2025 23:57
Copy link
Contributor

@Jakuje Jakuje left a comment

Choose a reason for hiding this comment

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

Just one typo in commit message: s/signle/single/. Otherwise lgtm

simo5 added 4 commits March 5, 2025 09:38
These functions only return CKR_FUNCTION_NOT_PARALLEL by spec.
Get them off the plate of the "unimplemented" functions.

Signed-off-by: Simo Sorce <[email protected]>
PKCS#11 allows multiple operations of different types to be executed in
parallel on a token. Drop the single operation enum method, and instead
allow storage for each type of operation on the session.

This also improves compile times checks, and drops runtime checks to
check that the correct operation type is being accessed.

Fixes latchset#168

Signed-off-by: Simo Sorce <[email protected]>
Signed-off-by: Simo Sorce <[email protected]>
@simo5 simo5 merged commit 734da67 into latchset:main Mar 5, 2025
23 checks passed
@simo5 simo5 added this to the release-1.0 milestone Mar 7, 2025
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.

Handle parallel session operations

2 participants