aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2012-06-15 07:46:59 +0000
committerNIIBE Yutaka <[email protected]>2012-06-15 07:46:59 +0000
commit3e39a9aeaadd9d4ea7ea578dc77504bd1fd6e30a (patch)
treeacb0ff5a02523c8089451eed1db13eb018993c35
parentscd: Prefer application Geldkarte over DINSIG. (diff)
downloadgnupg-3e39a9aeaadd9d4ea7ea578dc77504bd1fd6e30a.tar.gz
gnupg-3e39a9aeaadd9d4ea7ea578dc77504bd1fd6e30a.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);
}