Xiaoshuo Wu wrote: > On Thu, 22 Apr 2010 17:09:37 +0800, Viktor TARASOV > <viktor.tara...@opentrust.com> wrote: > >> Actually there is no way to update certificates for the cards that do >> not returns ACLs at file selection. > That's sensible. > >> The 'sc_pkcs15init_update_certificate' should be modified; it has to >> instantiate certificate file from the profile, >> using the attributes of the really existing cert file (path, id, ??), >> and pass it to 'sc_pkcs15init_authenticate(UPDATE)'. > Because every driver has a profile, so it sets the default ACLs, and > select file would adjust them. > Thanks for your advice!
One more moment, your 'card->caps' should not have SC_CARD_CAP_USE_FCI_AC. Look at http://www.opensc-project.org/opensc/browser/trunk/src/pkcs15init/pkcs15-lib.c#L3063 > Regards, Xiaoshuo > Kind wishes, Viktor. -- Viktor Tarasov <viktor.tara...@opentrust.com> _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel