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

Optional SCard Scope #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

petrzjunior
Copy link

@petrzjunior petrzjunior commented Feb 27, 2020

Windows SCard supports two different context scopes - USER and SYSTEM. The pcsclite implementation goes further with TERMINAL and GLOBAL, marked as unused though.

In case you need to lower the scope to comply with your machine's permissions, you are now able to specify a optional parameter in pcsclite constructor:

const pcsc = pcsclite({ scope: SCARD_SCOPE_USER });

From this line on, all pcsc contexts will be created with supplied scope.

Fixes #30

@petrzjunior petrzjunior changed the title [WIPOptional SCard Scope [WIP] Optional SCard Scope Feb 27, 2020
@petrzjunior petrzjunior changed the title [WIP] Optional SCard Scope Optional SCard Scope Feb 28, 2020
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.

SCARD_SCOPE_USER is probably safer
2 participants