Fix returning sig counter.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-02-03 16:55:32 +01:00
parent c9ef78b3c9
commit 4f1cd1f2f8

View File

@@ -465,8 +465,8 @@ int reset_sig_count() {
}
int parse_sec_tpl(const file_t *f, int mode) {
res_APDU[res_APDU_size++] = EF_SEC_TPL & 0xff;
res_APDU[res_APDU_size++] = 5;
//res_APDU[res_APDU_size++] = EF_SEC_TPL & 0xff;
//res_APDU[res_APDU_size++] = 5;
file_t *ef = search_by_fid(EF_SIG_COUNT, NULL, SPECIFY_ANY);
if (ef && ef->data) {
res_APDU[res_APDU_size++] = EF_SIG_COUNT & 0xff;
@@ -474,7 +474,7 @@ int parse_sec_tpl(const file_t *f, int mode) {
memcpy(res_APDU+res_APDU_size, file_get_data(ef), 3);
res_APDU_size += 3;
}
return 5+2;
return 5/*+2*/;
}
int parse_ch_cert(const file_t *f, int mode) {