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

Disable card reading during initialization of the library. #139

Closed
wants to merge 1 commit into from

Conversation

nmav
Copy link
Contributor

@nmav nmav commented Mar 15, 2013

This prevents a slowdown of PKCS #11 C_Initialize when cards
are present. This results to faster startup of programs that
initialize PKCS #11 but not use any smart card operations, and
removes slowdowns in forking servers that follow PKCS #11
and call C_Initialize after each fork().

@JenkinsForOpenSC
Copy link

Can one of the admins verify this patch?

This prevents a slowdown of PKCS OpenSC#11 C_Initialize when cards
are present. This results to faster startup of programs that
initialize PKCS OpenSC#11 but not use any smart card operations, and
removes slowdowns in forking servers that follow PKCS OpenSC#11
and call C_Initialize after each fork().
@nmav
Copy link
Contributor Author

nmav commented Mar 15, 2013

I've modified the previous patch to use the plug and play variable. The new behavior should occur when plug and play is set, and the old otherwise.

@martinpaljak
Copy link
Member

This looks correct up to the point that pkcs11-tool needs to be fixed to not call C_GetSlotList even if only asked for basic module information with -I. Will merge both at once.

@martinpaljak
Copy link
Member

I think that 3b4f7b9 should fulfill your needs. In fact it seems like a bug from 0244baa or e237574 or something in between.

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.

None yet

3 participants