Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Use new FLUSHCRLS command on windows

Due to file locking the dirmngr --flash call could
not remove the files of the running dirmngr. This
works on Linux but on Windows we have to tell the
running dirmngr to flush.

GnuPG-Bug-Id: T3967
parent 73a9e5f6
......@@ -33,6 +33,7 @@
#include <config-kleopatra.h>
#include "clearcrlcachecommand.h"
#include "utils/gnupg-helper.h"
#include <KLocalizedString>
......@@ -55,8 +56,16 @@ 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");
//return QStringList() << "gpgsm" << "--call-dirmngr" << "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