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

tentative fix for direct access to 2wire readers #34

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions smartcard/scard/scard.i
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,12 @@ static SCARDRETCODE _Transmit(
)
{
PSCARD_IO_REQUEST piorequest=NULL;
SCARD_IO_REQUEST unknown;
long ret;

unknown.dwProtocol = 0;
unknown.cbPciLength = 0;

pblRecvBuffer->ab = (unsigned char*)mem_Malloc(MAX_BUFFER_SIZE_EXTENDED*sizeof(unsigned char));
pblRecvBuffer->cBytes = MAX_BUFFER_SIZE_EXTENDED;

Expand All @@ -692,6 +696,10 @@ static SCARDRETCODE _Transmit(
piorequest=(PSCARD_IO_REQUEST)myg_prgSCardRawPci;
break;

case 0x00:
piorequest = &unknown;
break;

default:
return SCARD_E_INVALID_PARAMETER;

Expand Down