Permalink
Browse files

Merge pull request #25 from viktorTarasov/master

pkcs15-init tool: fix for pin auth_type comparison (thanks to 'joelhockey')
  • Loading branch information...
2 parents e6c501f + 2b63213 commit fa6c1a1aa61ab4432b702ecf33e0e04aed876458 @viktorTarasov viktorTarasov committed Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tools/pkcs15-init.c
View
@@ -2724,7 +2724,7 @@ int get_pin(sc_ui_hints_t *hints, char **out)
int flags = hints->flags;
pin_info = hints->info.pin;
- if (pin_info && pin_info->auth_type == SC_PKCS15_PIN_AUTH_TYPE_PIN)
+ if (pin_info && pin_info->auth_type != SC_PKCS15_PIN_AUTH_TYPE_PIN)
return SC_ERROR_NOT_SUPPORTED;
if (!(label = hints->obj_label)) {

0 comments on commit fa6c1a1

Please sign in to comment.