From 1f567f62ebeeec69871f72b273881dacf5274e82 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 25 Jun 2014 15:44:00 +0200 Subject: [PATCH] drop unused code from delete_cert --- tool/yubico-piv-tool.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tool/yubico-piv-tool.c b/tool/yubico-piv-tool.c index 9b16696..c13d4b6 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -836,7 +836,6 @@ static bool change_pin(ykpiv_state *state, enum enum_action action, const char * } static bool delete_certificate(ykpiv_state *state, enum enum_slot slot) { - APDU apdu; unsigned char objdata[7]; unsigned char *ptr = objdata; unsigned char data[0xff]; @@ -854,11 +853,6 @@ static bool delete_certificate(ykpiv_state *state, enum enum_slot slot) { *ptr++ = 0x53; *ptr++ = 0x00; /* length 0 means we'll delete the object */ - memset(apdu.raw, 0, sizeof(apdu.raw)); - apdu.st.ins = YKPIV_INS_PUT_DATA; - apdu.st.p1 = 0x3f; - apdu.st.p2 = 0xff; - if(ykpiv_transfer_data(state, templ, objdata, 7, data, &recv_len, &sw) != YKPIV_OK) { return false;