aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scd/app-nks.c2
-rw-r--r--scd/app-sc-hsm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/scd/app-nks.c b/scd/app-nks.c
index 8a99864cb..b09b71e67 100644
--- a/scd/app-nks.c
+++ b/scd/app-nks.c
@@ -866,7 +866,7 @@ do_learn_status_core (app_t app, ctrl_t ctrl, unsigned int flags,
if (filelist[i].nks_app_id != nks_app_id)
continue;
- if (filelist[i].certtype && !(flags &1))
+ if (filelist[i].certtype && !(flags & APP_LEARN_FLAG_KEYPAIRINFO))
{
size_t len;
diff --git a/scd/app-sc-hsm.c b/scd/app-sc-hsm.c
index 1425b435b..ab9400719 100644
--- a/scd/app-sc-hsm.c
+++ b/scd/app-sc-hsm.c
@@ -1405,7 +1405,7 @@ do_learn_status (app_t app, ctrl_t ctrl, unsigned int flags)
{
gpg_error_t err;
- if ((flags & 1))
+ if ((flags & APP_LEARN_FLAG_KEYPAIRINFO))
err = 0;
else
{