opensc-explorer: allow longer PINs in CHANGE & UNBLOCK
Harmonize the allowed PIN length in CHANGE & UNBLOCK with the one in VERIFY, making sure they are large enough for OpenPGP, which allows up ro 32 characters, and giving additional security margin for other cards.
This commit is contained in:
parent
71ec763604
commit
4035245649
|
@ -1020,8 +1020,8 @@ static int do_pace(int argc, char **argv)
|
|||
static int do_change(int argc, char **argv)
|
||||
{
|
||||
int ref, r, tries_left = -1;
|
||||
u8 oldpin[30];
|
||||
u8 newpin[30];
|
||||
u8 oldpin[64];
|
||||
u8 newpin[64];
|
||||
size_t oldpinlen = 0;
|
||||
size_t newpinlen = 0;
|
||||
struct sc_pin_cmd_data data;
|
||||
|
@ -1082,8 +1082,8 @@ static int do_change(int argc, char **argv)
|
|||
static int do_unblock(int argc, char **argv)
|
||||
{
|
||||
int ref, r;
|
||||
u8 puk[30];
|
||||
u8 newpin[30];
|
||||
u8 puk[64];
|
||||
u8 newpin[64];
|
||||
size_t puklen = 0;
|
||||
size_t newpinlen = 0;
|
||||
struct sc_pin_cmd_data data;
|
||||
|
|
Loading…
Reference in New Issue