removed untested use of SC_SEC_OPERATION_AUTHENTICATE

fixes https://github.com/OpenSC/OpenSC/issues/1271
This commit is contained in:
Frank Morgner 2019-03-06 11:31:55 +01:00
parent 106b3a28b1
commit 1e0743b29f
2 changed files with 0 additions and 8 deletions

View File

@ -1520,11 +1520,6 @@ static int dnie_set_security_env(struct sc_card *card,
apdu.p1 = 0x41; /* SET; internal operation */
apdu.p2 = 0xB6; /* Template for Digital Signature */
break;
case SC_SEC_OPERATION_AUTHENTICATE:
/* TODO: _set_security_env() study diffs on internal/external auth */
apdu.p1 = 0x41; /* SET; internal operation */
apdu.p2 = 0xA4; /* Template for Authenticate */
break;
default:
LOG_FUNC_RETURN(card->ctx, SC_ERROR_INVALID_ARGUMENTS);
}

View File

@ -312,9 +312,6 @@ static int itacns_set_security_env(sc_card_t *card,
case SC_SEC_OPERATION_SIGN:
apdu.p2 = 0xB6;
break;
case SC_SEC_OPERATION_AUTHENTICATE:
apdu.p2 = 0xA4;
break;
default:
return SC_ERROR_INVALID_ARGUMENTS;
}