/[openpgpmdrv]/trunk/OpenPGPminidriver/ContextManagement.c
ViewVC logotype

Diff of /trunk/OpenPGPminidriver/ContextManagement.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by vletoux, Mon Mar 15 09:47:30 2010 UTC revision 10 by vletoux, Mon Mar 15 18:23:17 2010 UTC
# Line 197  DWORD CheckContext(__in PCARD_DATA pCard Line 197  DWORD CheckContext(__in PCARD_DATA pCard
197    
198  DWORD CleanContext(__in PCARD_DATA pCardData)  DWORD CleanContext(__in PCARD_DATA pCardData)
199  {  {
200          DWORD dwReturn = 0;          DWORD dwReturn = 0, dwI;
201          __try          __try
202          {          {
203                  if (pCardData)                  if (pCardData)
204                  {                  {
205                          if ( pCardData->pvVendorSpecific)                          if ( pCardData->pvVendorSpecific)
206                          {                          {
207                                    POPENPGP_CONTEXT pContext = (POPENPGP_CONTEXT) pCardData->pvVendorSpecific;
208                                    for(dwI = 0; dwI < KeyMax; dwI++)
209                                    {
210                                            if (pContext->pbModulusInLittleEndian[dwI] != NULL)
211                                            {
212                                                    pCardData->pfnCspFree(pContext->pbModulusInLittleEndian[dwI]);
213                                                    pContext->pbModulusInLittleEndian[dwI] = NULL;
214                                            }
215                                    }
216                                  pCardData->pfnCspFree( pCardData->pvVendorSpecific);                                  pCardData->pfnCspFree( pCardData->pvVendorSpecific);
217                                  pCardData->pvVendorSpecific = NULL;                                  pCardData->pvVendorSpecific = NULL;
218                          }                          }
# Line 362  DWORD CreateContext(__in PCARD_DATA pCar Line 371  DWORD CreateContext(__in PCARD_DATA pCar
371                                  }                                  }
372                          }                          }
373                  }                  }
374                  dwReturn = CCIDgetFeatures(pCardData);                  /*dwReturn = CCIDgetFeatures(pCardData);
375                  if (dwReturn)                  if (dwReturn)
376                  {                  {
377                          __leave;                          __leave;
378                  }                  }*/
379                  dwReturn = 0;                  dwReturn = 0;
380          }          }
381          __finally          __finally

Legend:
Removed from v.9  
changed lines
  Added in v.10

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26