Commit 94db3fd2 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Disable creation of OpenPGP keys for card keys if NKS PIN has not set

As long as the NKS PIN is not set (i.e. the NullPIN has not been changed),
the attempt to create an OpenPGP key for the card keys (which requires a
few signing operations) fails with "Conditions of use not satisfied".

GnuPG-bug-id: 5128
parent 5095a857
Pipeline #43584 passed with stage
in 19 minutes and 11 seconds
......@@ -206,7 +206,7 @@ void NetKeyWidget::setCard(const NetKeyCard* card)
mTreeView->setKeys(keys);
if (mKeyForCardKeysButton) {
mKeyForCardKeysButton->setEnabled(card->hasSigningKey() && card->hasEncryptionKey());
mKeyForCardKeysButton->setEnabled(!card->hasNKSNullPin() && card->hasSigningKey() && card->hasEncryptionKey());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment