- renamed Special PIN Verification/Capabilities to PACE Verification/Capabilities
- fixed PIN PACE support in ccid descriptor - using uint16_t instead of WORD in PACE structures - fixed lengthInputData to host byteorder - fixed parsing input buffer of SCardControl with FEATURE_EXECUTE_PACE - parsing input buffer for PACE verification and adjusting the byteorder - added 30s timeout to for PACE verification - triggering PACE via PC/SC now works although quite unstable git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@155 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -43,7 +43,7 @@ main(int argc, char *argv[])
|
||||
BYTE pbSendBufferEstablish [] = {
|
||||
0x02, /* idxFunction = EstabishPACEChannel */
|
||||
0x00, /* lengthInputData */
|
||||
0x04, /* lengthInputData */
|
||||
0x00, /* lengthInputData */
|
||||
0x03, /* PACE with PIN */
|
||||
0x00, /* length CHAT */
|
||||
0x00, /* length certificate description */
|
||||
@@ -52,6 +52,9 @@ main(int argc, char *argv[])
|
||||
BYTE pbRecvBuffer[1024];
|
||||
DWORD dwActiveProtocol, dwRecvLength, dwReaders;
|
||||
|
||||
uint16_t lengthInputData = 4;
|
||||
memcpy(pbSendBufferEstablish + 1, &lengthInputData, 2);
|
||||
|
||||
if (argc > 1) {
|
||||
if (argc > 2 || sscanf(argv[1], "%d", &num) != 1) {
|
||||
fprintf(stderr, "Usage: %s [reader_num]\n", argv[0]);
|
||||
|
||||
Reference in New Issue
Block a user