On Tuesday 02 October 2007 22:34:09 Ludovic Rousseau wrote:

> Why not call the function sc_pkcs15_read_key_by_ref() or something similar?

Because upper level stuff (pkcs11 layer for example) calls the 
sc_pkcs15_read_pubkey, and change needs to be done in only one place this 
way.

> Why use a complete struct sc_cardctl_public_key when only the
> pkey.key_ref is used?

Other fields (buf and len) are used to pass data back.
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to