OpenPGP: correct PIN type to UTF-8
OpenPGP card spec v1.1 and v2.0 make it absolutely clear: "... The format of the CHVs is UTF-8 (case sensitive) ...".
This commit is contained in:
parent
6d4d1b4aca
commit
26aac71c9f
|
@ -216,7 +216,7 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
|
|||
pin_info.auth_id.value[0] = i + 1;
|
||||
pin_info.attrs.pin.reference = pin_cfg[i].reference;
|
||||
pin_info.attrs.pin.flags = pin_cfg[i].flags;
|
||||
pin_info.attrs.pin.type = SC_PKCS15_PIN_TYPE_ASCII_NUMERIC;
|
||||
pin_info.attrs.pin.type = SC_PKCS15_PIN_TYPE_UTF8;
|
||||
pin_info.attrs.pin.min_length = pin_cfg[i].min_length;
|
||||
pin_info.attrs.pin.stored_length = buffer[1 + pin_cfg[i].do_index];
|
||||
pin_info.attrs.pin.max_length = buffer[1 + pin_cfg[i].do_index];
|
||||
|
|
Loading…
Reference in New Issue