488 |
Trace(WINEVENT_LEVEL_ERROR, L"dwFlags = 0x%08X", dwFlags); |
Trace(WINEVENT_LEVEL_ERROR, L"dwFlags = 0x%08X", dwFlags); |
489 |
__leave; |
__leave; |
490 |
} |
} |
491 |
|
if (cRetryCount) |
492 |
|
{ |
493 |
|
dwReturn = SCARD_E_INVALID_PARAMETER; |
494 |
|
Trace(WINEVENT_LEVEL_ERROR, L"cRetryCount = %d", cRetryCount); |
495 |
|
__leave; |
496 |
|
} |
497 |
dwReturn = CheckContext(pCardData); |
dwReturn = CheckContext(pCardData); |
498 |
if (dwReturn ) |
if (dwReturn ) |
499 |
{ |
{ |
583 |
Trace(WINEVENT_LEVEL_ERROR, L"dwFlags = 0x%08X", dwFlags); |
Trace(WINEVENT_LEVEL_ERROR, L"dwFlags = 0x%08X", dwFlags); |
584 |
__leave; |
__leave; |
585 |
} |
} |
586 |
|
if (cRetryCount) |
587 |
|
{ |
588 |
|
dwReturn = SCARD_E_INVALID_PARAMETER; |
589 |
|
Trace(WINEVENT_LEVEL_ERROR, L"cRetryCount = %d", cRetryCount); |
590 |
|
__leave; |
591 |
|
} |
592 |
dwReturn = CheckContext(pCardData); |
dwReturn = CheckContext(pCardData); |
593 |
if ( dwReturn ) |
if ( dwReturn ) |
594 |
{ |
{ |
607 |
} |
} |
608 |
} |
} |
609 |
else if ( (dwAuthenticatingPinId == ROLE_ADMIN || dwAuthenticatingPinId == ROLE_PUK ) |
else if ( (dwAuthenticatingPinId == ROLE_ADMIN || dwAuthenticatingPinId == ROLE_PUK ) |
610 |
&& dwTargetPinId == ROLE_USER && dwFlags == PIN_CHANGE_FLAG_UNBLOCK) |
&& (dwTargetPinId == ROLE_USER || dwTargetPinId == ROLE_AUTHENTICATION) |
611 |
|
&& dwFlags == PIN_CHANGE_FLAG_UNBLOCK) |
612 |
{ |
{ |
613 |
dwReturn = ResetUserPIN(pCardData, dwAuthenticatingPinId, |
dwReturn = ResetUserPIN(pCardData, dwAuthenticatingPinId, |
614 |
pbAuthenticatingPinData, cbAuthenticatingPinData, |
pbAuthenticatingPinData, cbAuthenticatingPinData, |