From c7a33e90668181238794961a13b5795f6e9fdd39 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Thu, 21 Oct 2010 18:54:16 +0000 Subject: [PATCH] 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 --- ccid/src/ccid.c | 8 ++------ ccid/src/pace.c | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ccid/src/ccid.c b/ccid/src/ccid.c index f217ecd..4602f86 100644 --- a/ccid/src/ccid.c +++ b/ccid/src/ccid.c @@ -1022,20 +1022,16 @@ perform_PC_to_RDR_Secure_GetReadersPACECapabilities(__u8 **abDataOut, if (!abDataOut || !abDataOutLen) return SC_ERROR_INVALID_ARGUMENTS; - result = realloc(*abDataOut, 2); + result = realloc(*abDataOut, 1); if (!result) return SC_ERROR_OUT_OF_MEMORY; *abDataOut = result; - /* lengthBitMap */ - *result = 1; - result++; - sc_result = GetReadersPACECapabilities(result); if (sc_result < 0) return sc_result; - *abDataOutLen = 2; + *abDataOutLen = 1; return SC_SUCCESS; } diff --git a/ccid/src/pace.c b/ccid/src/pace.c index 1484779..7ae1b4c 100644 --- a/ccid/src/pace.c +++ b/ccid/src/pace.c @@ -173,7 +173,7 @@ int GetReadersPACECapabilities(u8 *bitmap) return SC_ERROR_INVALID_ARGUMENTS; /* BitMap */ - *bitmap = PACE_BITMAP_EID|PACE_BITMAP_EID|PACE_BITMAP_ESIGN; + *bitmap = PACE_BITMAP_PACE|PACE_BITMAP_EID|PACE_BITMAP_ESIGN; return SC_SUCCESS; }