Changeset 3538

Show
Ignore:
Timestamp:
07/21/08 16:39:37 (4 months ago)
Author:
aj
Message:

Chaskiel Grundman:
I found the following patch to opensc-explorer handy when cleaning up
after some failed keygens (but not all, since you can't delete private
key objects). It switches the card to the admin lifecycle at startup:

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/tools/opensc-explorer.c

    r3526 r3538  
    17631763                return 1; 
    17641764        } 
     1765        { 
     1766                int lcycle = SC_CARDCTRL_LIFECYCLE_ADMIN; 
     1767                r = sc_card_ctl(card, SC_CARDCTL_LIFECYCLE_SET, &lcycle); 
     1768                if (r && r != SC_ERROR_NOT_SUPPORTED) 
     1769                        printf("unable to change lifecycle: %s\n", 
     1770                                sc_strerror(r)); 
     1771        } 
    17651772        while (1) { 
    17661773                struct command *cmd;