Changeset View
Changeset View
Standalone View
Standalone View
g10/card-util.c
Context not available. | |||||
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | ||||
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | ||||
scd apdu 00 e6 00 00 | scd apdu 00 e6 00 00 | ||||
scd reset | |||||
scd serialno undefined | |||||
scd apdu 00 A4 04 00 06 D2 76 00 01 24 01 | |||||
scd apdu 00 44 00 00 | scd apdu 00 44 00 00 | ||||
/echo Card has been reset to factory defaults | /echo Card has been reset to factory defaults | ||||
Context not available. | |||||
goto leave; | goto leave; | ||||
} | } | ||||
/* The card is in termination state - reset and select again. */ | |||||
err = send_apdu (NULL, "RESET", 0); | |||||
if (err) | |||||
goto leave; | |||||
err = send_apdu ("undefined", "dummy select", 0); | |||||
if (err) | |||||
goto leave; | |||||
/* Select the OpenPGP application. (no error checking here). */ | |||||
send_apdu ("00A4040006D27600012401", "SELECT AID", 0xffff); | |||||
/* Send activate datafile command. This is used without | /* Send activate datafile command. This is used without | ||||
confirmation if the card is already in termination state. */ | confirmation if the card is already in termination state. */ | ||||
err = send_apdu ("00440000", "ACTIVATE DF", 0); | err = send_apdu ("00440000", "ACTIVATE DF", 0); | ||||
Context not available. |