diff options
author | NIIBE Yutaka <[email protected]> | 2019-11-07 23:07:33 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-11-07 23:07:33 +0000 |
commit | c49324200734e8ee8524bc096195e24e8aae87cb (patch) | |
tree | 85f3d2b39d59a8d78ee3ae968e1d9f6be4804ef0 | |
parent | qt, tests: Add check for supported versions (diff) | |
download | gpgme-c49324200734e8ee8524bc096195e24e8aae87cb.tar.gz gpgme-c49324200734e8ee8524bc096195e24e8aae87cb.zip |
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 <[email protected]>
-rw-r--r-- | lang/qt/tests/t-remarks.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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: |