Share via

SCardTransmit with AID of U2F failing

Tom 1 Reputation point
2021-04-30T15:52:12.643+00:00

Hello Windows Experts,
I am using the SCardTransmit function from winscard.h to send APDUs to my U2F Device.
The Device is connected via NFC with a Sony RC-S380 Reader.
Selecting an arbitrary applet works normally.
Except with the single required AID 00 A4 04 00 08 A0 00 00 06 47 2F 00 01.
SCardTransmit returns in this case:
SCARD_E_NO_ACCESS
0x80100027
Access is denied to the file.

When I run the same program with elevated privileges is works fine with this AID.
It seems that Windows or the device driver is somehow protecting access to U2F devices. Where can I find more information about this behaviour and is it configurable?

Kind Regards
Tom

Windows development | Windows API - Win32
Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.