From 4f1cd1f2f819fbb154197b241d98610699de8161 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 3 Feb 2023 16:55:32 +0100 Subject: [PATCH] Fix returning sig counter. Signed-off-by: Pol Henarejos --- src/openpgp/openpgp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openpgp/openpgp.c b/src/openpgp/openpgp.c index fe69348..bb897ae 100644 --- a/src/openpgp/openpgp.c +++ b/src/openpgp/openpgp.c @@ -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) {