Unverified Commit e9f76b6d authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Call flushcrls the same on linux as on win

There was possibly a very historic reason why this
was done differently on linux and on windows.

Calling the flushcrl through gpgsm works more reliably
as we can be sure to talk to the dirmngr which our
gpgsm, as used through gpgme, uses.
parent fe6ba226
Pipeline #132635 passed with stage
in 1 minute and 58 seconds
......@@ -33,16 +33,9 @@ ClearCrlCacheCommand::~ClearCrlCacheCommand() {}
QStringList ClearCrlCacheCommand::arguments() const
{
#ifdef Q_OS_WIN
return QStringList() << gpgSmPath()
<< QStringLiteral("--call-dirmngr")
<< QStringLiteral("flushcrls");
#else
// TODO: Replace with a version check if an unpatched
// gnupg supports it otherwise this mostly works on
// GNU/Linux but on Windows this did not work
return QStringList() << QStringLiteral("dirmngr") << QStringLiteral("--flush");
#endif
}
QString ClearCrlCacheCommand::errorCaption() const
......
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