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 <gniibe@fsij.org>
This commit is contained in:
parent
e7b5c6405d
commit
c493242007
@ -501,6 +501,10 @@ private Q_SLOTS:
|
|||||||
const QString gpgHome = qgetenv("GNUPGHOME");
|
const QString gpgHome = qgetenv("GNUPGHOME");
|
||||||
QVERIFY(copyKeyrings(gpgHome, mDir.path()));
|
QVERIFY(copyKeyrings(gpgHome, mDir.path()));
|
||||||
qputenv("GNUPGHOME", mDir.path().toUtf8());
|
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:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user