print 'tries_left' only if the value is >= 0
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1903 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
60eeadb962
commit
3f5dc67981
|
@ -652,7 +652,8 @@ void print_pin_info(const struct sc_pkcs15_object *obj)
|
||||||
printf("\tReference : %d\n", pin->reference);
|
printf("\tReference : %d\n", pin->reference);
|
||||||
printf("\tType : %d\n", pin->type);
|
printf("\tType : %d\n", pin->type);
|
||||||
printf("\tPath : %s\n", path);
|
printf("\tPath : %s\n", path);
|
||||||
printf("\tTries left: %d\n", pin->tries_left);
|
if (pin->tries_left >= 0)
|
||||||
|
printf("\tTries left: %d\n", pin->tries_left);
|
||||||
}
|
}
|
||||||
|
|
||||||
int list_pins(void)
|
int list_pins(void)
|
||||||
|
|
Loading…
Reference in New Issue