Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.cz>2019-07-20 00:21:52 +0200
committerPetr Tesarik <ptesarik@suse.cz>2019-07-20 00:21:52 +0200
commit5170133db8631b19d2b43851463cfc8eff3bd380 (patch)
tree4e781f46d10ed15fa443124500cdd8c18852a2c6
parentec72e64558db1e67c4db209337c0dae86955c0b7 (diff)
pkey: Indicate old mkvp only if old and current mkvp are
different (bsc#1137827 LTC#178090). suse-commit: dadd843e6780e2a66d737a84682ab06b81f1f4cb
-rw-r--r--drivers/s390/crypto/pkey_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/crypto/pkey_api.c b/drivers/s390/crypto/pkey_api.c
index 368efb3cb616..dfcef267eaae 100644
--- a/drivers/s390/crypto/pkey_api.c
+++ b/drivers/s390/crypto/pkey_api.c
@@ -1046,7 +1046,7 @@ int pkey_verifykey(const struct pkey_seckey *seckey,
rc = mkvp_cache_fetch(cardnr, domain, mkvp);
if (rc)
goto out;
- if (t->mkvp == mkvp[1]) {
+ if (t->mkvp == mkvp[1] && t->mkvp != mkvp[0]) {
DEBUG_DBG("pkey_verifykey secure key has old mkvp\n");
if (pattributes)
*pattributes |= PKEY_VERIFY_ATTR_OLD_MKVP;