else
for (int i=0; i<len; i++)
printf("%02x ", ((const unsigned char*)data)[i]);
+
if (state == stateFirstProfileEnquiry)
{
// profile change
printf("unknown APDU tag 9F 80 %02x\n", tag[2]);
}
}
+
return 0;
}
{
const unsigned char tag[3]={0x9F, 0x80, 0x10}; // profile enquiry
sendAPDU(tag);
- state=stateFirstProfileEnquiry;
+ state = stateFirstProfileEnquiry;
return 0;
}
case stateFirstProfileEnquiry:
state=stateProfileChange;
return 0;
}
+ case stateProfileChange:
+ {
+ printf("bla kaputt\n");
+ break;
+ }
case stateProfileEnquiry:
{
const unsigned char tag[3]={0x9F, 0x80, 0x11};
{0x00, 0x01, 0x00, 0x41},
{0x00, 0x02, 0x00, 0x41},
{0x00, 0x03, 0x00, 0x41},
- {0x00, 0x20, 0x00, 0x41},
+// {0x00, 0x20, 0x00, 0x41}, // host control
{0x00, 0x24, 0x00, 0x41},
{0x00, 0x40, 0x00, 0x41},
- {0x00, 0x10, 0x00, 0x41}, // auth.
+// {0x00, 0x10, 0x00, 0x41}, // auth.
};
sendAPDU(tag, data, sizeof(data));
state=stateFinal;
case stateFinal:
printf("stateFinal und action! kann doch garnicht sein ;)\n");
default:
- return 0;
+ break;
}
+ return 0;
}