fixed formating of ReadersPACECapabilities result. errors were due to changes of r284
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@338 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -1022,20 +1022,16 @@ perform_PC_to_RDR_Secure_GetReadersPACECapabilities(__u8 **abDataOut,
|
|||||||
if (!abDataOut || !abDataOutLen)
|
if (!abDataOut || !abDataOutLen)
|
||||||
return SC_ERROR_INVALID_ARGUMENTS;
|
return SC_ERROR_INVALID_ARGUMENTS;
|
||||||
|
|
||||||
result = realloc(*abDataOut, 2);
|
result = realloc(*abDataOut, 1);
|
||||||
if (!result)
|
if (!result)
|
||||||
return SC_ERROR_OUT_OF_MEMORY;
|
return SC_ERROR_OUT_OF_MEMORY;
|
||||||
*abDataOut = result;
|
*abDataOut = result;
|
||||||
|
|
||||||
/* lengthBitMap */
|
|
||||||
*result = 1;
|
|
||||||
result++;
|
|
||||||
|
|
||||||
sc_result = GetReadersPACECapabilities(result);
|
sc_result = GetReadersPACECapabilities(result);
|
||||||
if (sc_result < 0)
|
if (sc_result < 0)
|
||||||
return sc_result;
|
return sc_result;
|
||||||
|
|
||||||
*abDataOutLen = 2;
|
*abDataOutLen = 1;
|
||||||
|
|
||||||
return SC_SUCCESS;
|
return SC_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ int GetReadersPACECapabilities(u8 *bitmap)
|
|||||||
return SC_ERROR_INVALID_ARGUMENTS;
|
return SC_ERROR_INVALID_ARGUMENTS;
|
||||||
|
|
||||||
/* BitMap */
|
/* BitMap */
|
||||||
*bitmap = PACE_BITMAP_EID|PACE_BITMAP_EID|PACE_BITMAP_ESIGN;
|
*bitmap = PACE_BITMAP_PACE|PACE_BITMAP_EID|PACE_BITMAP_ESIGN;
|
||||||
|
|
||||||
return SC_SUCCESS;
|
return SC_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user