1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

scd: Use APP_LEARN_FLAG_KEYPAIRINFO with more apps.

* scd/app-nks.c (do_learn_status_core): Use new flag.
* scd/app-sc-hsm.c (do_learn_status): Ditto.
--

The flag was already backported to some apps but not to these.
This commit is contained in:
Werner Koch 2019-09-04 10:43:18 +02:00
parent 12273efdf4
commit ea222a0d9c
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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
{