TODO
This commit is contained in:
@@ -285,6 +285,7 @@ static bool set_mgm_key(SCARDHANDLE *card, unsigned const char *new_key, int ver
|
|||||||
unsigned long recv_len = sizeof(data);
|
unsigned long recv_len = sizeof(data);
|
||||||
int sw;
|
int sw;
|
||||||
|
|
||||||
|
/* TODO: check that it's a good key before setting. */
|
||||||
memset(apdu.raw, 0, sizeof(apdu));
|
memset(apdu.raw, 0, sizeof(apdu));
|
||||||
apdu.st.ins = 0xff;
|
apdu.st.ins = 0xff;
|
||||||
apdu.st.p1 = 0xff;
|
apdu.st.p1 = 0xff;
|
||||||
|
|||||||
Reference in New Issue
Block a user