Albert Solana wrote:
Hello,

On a developing of an external smart card driver, there is the necessity
of verifying the PIN before reading any public key.
This makes that I get an error for each public key whenever I try to
list all PKCS#11 objects on card. I think it could be usefull check
whether the flag SC_PKCS15_CO_FLAG_PRIVATE is set on a public key (the
same way as on certificate objects), reading only if this flag is not
present and returning NULL otherwise.

I attach a patch on a solution that works for me.
I would be glad if you could aply this patch on OpenSC code.

patch applied, please test a recent snapshot

Thanks,
Nils
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to