aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2012-06-15 07:46:59 +0000
committerNIIBE Yutaka <[email protected]>2012-06-25 01:04:23 +0000
commit8cb0209022afa92b39d3a6e82be69a5211b79623 (patch)
treeca953529482bfa390549762552b59fd3aea10320
parentscd: Prefer application Geldkarte over DINSIG. (diff)
downloadgnupg-8cb0209022afa92b39d3a6e82be69a5211b79623.tar.gz
gnupg-8cb0209022afa92b39d3a6e82be69a5211b79623.zip
scd: Fix merge mistake.
* scd/iso7816.c (iso7816_reset_retry_counter): Implement.
-rw-r--r--scd/iso7816.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scd/iso7816.c b/scd/iso7816.c
index dd73fc61d..12daff9fb 100644
--- a/scd/iso7816.c
+++ b/scd/iso7816.c
@@ -374,7 +374,11 @@ gpg_error_t
iso7816_reset_retry_counter (int slot, int chvno,
const char *newchv, size_t newchvlen)
{
- return iso7816_reset_retry_counter_kp (slot, chvno, newchv, newchvlen, NULL);
+ int sw;
+
+ sw = apdu_send_simple (slot, 0, 0x00, CMD_RESET_RETRY_COUNTER,
+ 2, chvno, newchvlen, newchv);
+ return map_sw (sw);
}