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:
Peter Marschall 2012-05-20 21:04:57 +02:00 committed by Viktor Tarasov
parent 6d4d1b4aca
commit 26aac71c9f
1 changed files with 1 additions and 1 deletions

View File

@ -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];