Skip to content

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