| 1059 | | #if 0 |
| 1060 | | /* this function isn't used anywhere */ |
| 1061 | | static int select_key_df(sc_card_t * card) |
| 1062 | | { |
| 1063 | | int r; |
| 1064 | | size_t i = 0; |
| 1065 | | char tmpstr[16] = ""; |
| 1066 | | char currpathpart[10]; |
| 1067 | | sc_path_t tmppath; |
| 1068 | | struct mcrd_priv_data *priv = DRVDATA(card); |
| 1069 | | memset(tmpstr, 0, 16); |
| 1070 | | |
| 1071 | | while (i < priv->curpathlen - 1) { |
| 1072 | | sprintf(currpathpart, "%04x", (unsigned short)priv->curpath[i]); |
| 1073 | | strcat(tmpstr, currpathpart); |
| 1074 | | i++; |
| 1075 | | } |
| 1076 | | |
| 1077 | | sc_format_path(tmpstr, &tmppath); |
| 1078 | | tmppath.type = SC_PATH_TYPE_PATH; |
| 1079 | | r = sc_select_file(card, &tmppath, NULL); |
| 1080 | | SC_TEST_RET(card->ctx, r, "Micardo select DF failed"); |
| 1081 | | return r; |
| 1082 | | } |
| 1083 | | #endif |