From c49324200734e8ee8524bc096195e24e8aae87cb Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 8 Nov 2019 08:07:33 +0900 Subject: [PATCH] qt,tests: Take care for old DSA key using deprecated digest algo. * lang/qt/tests/t-remarks.cpp (initTestCase): Supply allow-weak-key-signatures flag for GnuPG 2.3, which normally rejects use of SHA1 digest. Signed-off-by: NIIBE Yutaka --- lang/qt/tests/t-remarks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lang/qt/tests/t-remarks.cpp b/lang/qt/tests/t-remarks.cpp index c39c430b..8597372f 100644 --- a/lang/qt/tests/t-remarks.cpp +++ b/lang/qt/tests/t-remarks.cpp @@ -501,6 +501,10 @@ private Q_SLOTS: const QString gpgHome = qgetenv("GNUPGHOME"); QVERIFY(copyKeyrings(gpgHome, mDir.path())); qputenv("GNUPGHOME", mDir.path().toUtf8()); + QFile conf(mDir.path() + QStringLiteral("/gpg.conf")); + QVERIFY(conf.open(QIODevice::WriteOnly)); + conf.write("allow-weak-key-signatures"); + conf.close(); } private: