This commit is contained in:
Zhi Guan
2019-01-23 09:50:13 +08:00
parent 3b531349db
commit a58a817e9c
5 changed files with 5559 additions and 5603 deletions

View File

@@ -549,38 +549,6 @@ end:
return ret;
}
/*
ULONG DEVAPI SKF_LoginApplication(DEVHANDLE hDev, LPSTR appName,
ULONG userType, LPSTR szPin, HAPPLICATION *phApp)
{
int ret = 0;
HAPPLICATION hApp = NULL;
ULONG numRetry;
if (SKF_OpenApplication(hDev, (LPSTR)name, &hApp) != SAR_OK) {
ERR_print_errors(bio_err);
return 0;
}
if (SKF_VerifyPIN(hApp, userType, szPin, &numRetry) != SAR_OK) {
BIO_printf(bio_err, "Invalid %s PIN, retry count = %u\n",
admin ? "admin" : "user", numRetry);
ERR_print_errors(bio_err);
goto end;
}
*phApp = hApp;
hApp = NULL;
ret = 1;
end:
if (hApp && SKF_CloseApplication(hApp) != SAR_OK) {
ERR_print_errors(bio_err);
ret = 0;
}
return ret;
}
*/
static int skf_openapp(DEVHANDLE hDev, const char *name, int admin,
const char *passarg, HAPPLICATION *phApp)
{