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

Skip any config options beyond "invisible" level

Currently, this doesn't really filter out any config options because
"internal" options are not even listed by gpgconf.

GnuPG-bug-id: 5677
parent e684b2e9
......@@ -357,9 +357,9 @@ auto getGroupEntriesToOfferForConfiguration(QGpgME::CryptoConfigGroup *group)
{
const bool de_vs = Kleo::gnupgUsesDeVsCompliance();
// Skip "dangerous" expert options if we are running in CO_DE_VS.
// Otherwise, skip any options beyond expert level.
// Otherwise, skip any options beyond "invisible" (== expert + 1) level.
const auto maxEntryLevel = de_vs ? QGpgME::CryptoConfigEntry::Level_Advanced
: QGpgME::CryptoConfigEntry::Level_Expert;
: QGpgME::CryptoConfigEntry::Level_Expert + 1;
std::vector<QGpgME::CryptoConfigEntry *> result;
const auto entryNames = group->entryList();
......
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