Hi,

I propose to change the sc_pkcs15_verify_pin() prototype from
int sc_pkcs15_verify_pin(struct sc_pkcs15_card *, struct sc_pkcs15_pin_info *, const u8 *, size_t);
to
int sc_pkcs15_verify_pin(struct sc_pkcs15_card *, struct sc_pkcs15_object *, const u8 *, size_t);


The reason is that every time this procedure is called,
the 'pin_info' is extracted from 'object' either directly in the call line, or a few lines earlier.
In every actual call of this procedure the pin object is available.

This change will slightly simplify the existing code.

The same concerns sc_pkcs15_change_pin() and sc_pkcs15_unblock_pin().

Any objections?

Kind wishes,
Viktor.

--
Viktor Tarasov  <[email protected]>

_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to