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

Add setting for (dis)allowing signatures with S/MIME certificates

This setting can be used to hide the functionality to sign the clipboard
content with an S/MIME certificate independent of the setting for disabling
CMS completely.

GnuPG-bug-id: 5688
parent ee29e817
......@@ -52,6 +52,12 @@
<whatsthis>If false, then Kleopatra will not offer the creation of S/MIME certificate signing requests.</whatsthis>
<entry key="AllowSigning" name="cmsSigningAllowed" type="Bool">
<label>Allow signing with S/MIME certificates</label>
<tooltip>Allows signing of text or files with S/MIME certificates.</tooltip>
<whatsthis>If false, then Kleopatra will not offer functionality for creating signatures with S/MIME certificates.</whatsthis>
<group name="ConfigurationDialog">
<entry name="ShowAppearanceConfiguration" type="Bool">
......@@ -34,7 +34,8 @@ ClipboardMenu::ClipboardMenu(QObject *parent)
mClipboardMenu = new KActionMenu(i18n("Clipboard"), this);
mImportClipboardAction = new QAction(i18n("Certificate Import"), this);
mEncryptClipboardAction = new QAction(i18n("Encrypt..."), this);
if (Settings{}.cmsEnabled()) {
const Kleo::Settings settings{};
if (settings.cmsEnabled() && settings.cmsSigningAllowed()) {
mSmimeSignClipboardAction = new QAction(i18n("S/MIME-Sign..."), this);
mOpenPGPSignClipboardAction = new QAction(i18n("OpenPGP-Sign..."), this);
Supports Markdown
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