Remove unused code.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3308 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2007-12-21 16:40:27 +00:00
parent 743ecfe89e
commit 1667798217
1 changed files with 0 additions and 25 deletions

View File

@ -1056,31 +1056,6 @@ static int mcrd_restore_se(sc_card_t * card, int se_num)
return sc_check_sw(card, apdu.sw1, apdu.sw2);
}
#if 0
/* this function isn't used anywhere */
static int select_key_df(sc_card_t * card)
{
int r;
size_t i = 0;
char tmpstr[16] = "";
char currpathpart[10];
sc_path_t tmppath;
struct mcrd_priv_data *priv = DRVDATA(card);
memset(tmpstr, 0, 16);
while (i < priv->curpathlen - 1) {
sprintf(currpathpart, "%04x", (unsigned short)priv->curpath[i]);
strcat(tmpstr, currpathpart);
i++;
}
sc_format_path(tmpstr, &tmppath);
tmppath.type = SC_PATH_TYPE_PATH;
r = sc_select_file(card, &tmppath, NULL);
SC_TEST_RET(card->ctx, r, "Micardo select DF failed");
return r;
}
#endif
/* It seems that MICARDO does not fully comply with ISO, so I use
values gathered from peeking actual signing opeations using a