added workaround for ausweisapp

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@339 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-10-22 08:31:57 +00:00
parent c7a33e9066
commit 1b34e5e66b

View File

@@ -1022,16 +1022,29 @@ perform_PC_to_RDR_Secure_GetReadersPACECapabilities(__u8 **abDataOut,
if (!abDataOut || !abDataOutLen)
return SC_ERROR_INVALID_ARGUMENTS;
#ifdef BUERGERCLIENT_WORKAROUND
result = realloc(*abDataOut, 1);
#else
result = realloc(*abDataOut, 2);
#endif
if (!result)
return SC_ERROR_OUT_OF_MEMORY;
*abDataOut = result;
#ifndef BUERGERCLIENT_WORKAROUND
*result = 1;
result++;
#endif
sc_result = GetReadersPACECapabilities(result);
if (sc_result < 0)
return sc_result;
#ifdef BUERGERCLIENT_WORKAROUND
*abDataOutLen = 1;
#else
*abDataOutLee = 2;
#endif
return SC_SUCCESS;
}