diff options
Diffstat (limited to 'scd/app-piv.c')
-rw-r--r-- | scd/app-piv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scd/app-piv.c b/scd/app-piv.c index cd53c175f..8a3ba1e1b 100644 --- a/scd/app-piv.c +++ b/scd/app-piv.c @@ -3513,17 +3513,17 @@ do_with_keygrip (app_t app, ctrl_t ctrl, int action, } else if (!want_keygripstr || !strcmp (keygripstr, want_keygripstr)) { - if (capability == 1) + if (capability == GCRY_PK_USAGE_SIGN) { if (strcmp (data_objects[i].keyref, "9C")) continue; } - if (capability == 2) + if (capability == GCRY_PK_USAGE_ENCR) { if (strcmp (data_objects[i].keyref, "9D")) continue; } - if (capability == 3) + if (capability == GCRY_PK_USAGE_AUTH) { if (strcmp (data_objects[i].keyref, "9A")) continue; |