Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to open serial only sessions #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thuandb
Copy link

@thuandb thuandb commented Sep 14, 2024

Proposed Changes

Our PKCS#11 devices only support serial only sessions hence this library is failing with the following error:

error: PKCS11 function C_OpenSession failed: rv = CKR_TOKEN_WRITE_PROTECTED (0xe2)

This change is to introduce an optional configuration to allow initialize P11 context with serial only session.

Types of Changes

  • New Feature & Backward-Compatible

Verification

We tested with our PKCS#11 devices.

Testing

We tested with our PKCS#11 devices.

Linked Issues

User-Facing Change

Support serial only sessions.

Further Comments

Copy link
Contributor

@solcates solcates left a comment

Choose a reason for hiding this comment

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

LGTM

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