Hi,
On Wed 20 Jun 2012 02:51:49 PM ICT, Viktor Tarasov wrote:

> Overwrite not,
> for the native cards the method is to delete existing object and then
> create a new one with the same ID.
>
I tried the command
pkcs15-init --delete-objects privkey --id 3 --store-private-key 
quan-key.pem  --auth-id 3 --verify-pin --extractable --id 3
and found that the "store private key" action is always done before 
"delete" action.

Is there any problem if I change the order of processing action in 
pkcs15-init.c source code? It is just the change of order in
enum {
        ACTION_NONE = 0,
        ACTION_ASSERT_PRISTINE,
        ACTION_ERASE,
        ....

        ACTION_MAX
};

--
Regards,
Quân
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to