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

scd:p15: Take derive usage into account for decryption (2).

* scd/app-p15.c (do_getattr): Yet another palce to fix.
--
GnuPG-bug-id: 7000
Co-authored-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
This commit is contained in:
Werner Koch 2024-02-20 10:29:25 +01:00
parent 3341017ff1
commit 1e496cf2e5
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -4936,7 +4936,8 @@ do_getattr (app_t app, ctrl_t ctrl, const char *name)
}
else
{
if (prkdf->usageflags.decrypt || prkdf->usageflags.unwrap)
if (prkdf->usageflags.decrypt || prkdf->usageflags.unwrap
|| prkdf->usageflags.derive)
break;
}
}