Skip to content

Handle unsupported URI prefixes in provider store_open() #601

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

olszomal
Copy link
Collaborator

Add a check in store_open() to verify that the input URI starts with pkcs11:. If not, return NULL without logging.
This ensures the provider correctly declines unsupported URIs without producing unnecessary log messages, as expected by the OpenSSL provider interface.

@mtrojnar mtrojnar merged commit f7a7328 into OpenSC:master May 29, 2025
8 of 10 checks passed
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