Hello Aleksey,

in
http://www.opensc-project.org/opensc/browser/trunk/src/pkcs15init/pkcs15-rtecp.c#L216
there is a call
rv = sc_change_reference_data(card, pin_info->type, pin_info->reference, ...

My humble question is: does there any mis-usage of the 'type' member of 
the 'pin_info' data?

Afaik,
'type' in 'sc_pkcs15_pin_info' structure holds the  PKCS#15 
PinAttributes.pinType -- PIN encoding style;
the 'sc_change_reference_data()' expects as a second argument the 
'authentication method' like SC_AC_CHV.


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

Reply via email to