45f2312979
remove depricated features
2021-09-09 15:14:19 +03:00
a602142dcb
disable doc target
2021-09-02 11:48:08 +03:00
5b49c00168
Merge pull request #1 from KDE/master
...
refresh
2021-09-02 09:56:29 +03:00
Albert Astals Cid
e9fd31b4a1
Fix wrong condition protecting test execution
2021-08-06 17:15:30 +02:00
Christophe Giboudeaux
7ead054437
Don't create pkgconfig files for Qt 6 builds
...
Qt 6 doesn't provide pkgconfig files.
2021-06-05 08:35:27 +02:00
Albert Astals Cid
b2e54520a3
Increase version
2021-05-31 23:12:57 +02:00
Tobias Junghans
5cc26f77f0
CI: add job for Qt 6 build/test
2021-05-29 22:28:27 +00:00
Tobias Junghans
2c3992f075
Add Qt 6 build support
...
The Core5Compat module is still required for QTextCodec and some
difficult remaining QRegExp -> QRegularExpression migrations.
2021-05-29 22:28:27 +00:00
Tobias Junghans
0c3db8a062
Start Qt 6 port
...
Still a few occurrences of QRegExp and QTextCodec need to be replaced
in order to drop the dependency on the Core5Compat module. Besides this
QCA builds fine with Qt 6.1 and passes all tests.
2021-05-29 22:28:27 +00:00
Tobias Junghans
974f8ec8d0
Migrate from QScopedPointer to std::unique_ptr
...
QScopedPointer::take() is deprecated since Qt 6.1 so we can switch
to std::unique_ptr everywhere to be consistent.
2021-05-29 22:28:27 +00:00
Tobias Junghans
040d7d6348
Use QVariant::fromValue() for custom types
2021-05-29 22:28:27 +00:00
Tobias Junghans
d8f1e6cb9c
Remove QChar::Null from latin1 strings
...
QString::fromLatin1(QByteArray) includes the null characters from the
byte array which makes BigInteger and Certificate tests fail since
QCOMPARE distinguishes between QString("123") and QString("123\u0000").
2021-05-29 22:28:27 +00:00
Tobias Junghans
9443ba76ba
Migrate from qrand() to std::rand()
...
qrand() is deprecated since Qt 5.15.
2021-05-29 22:28:27 +00:00
Tobias Junghans
effbe387a0
Use QDateTime::to/fromSecsSinceEpoch()
...
QDateTime::to/fromTime_t() are deprecated since Qt 5.8.
2021-05-29 22:28:27 +00:00
Tobias Junghans
e6a15466ae
Make retval of size()/count() match format string
...
Starting with Qt 6 qsizetype is returned (equals size_t).
2021-05-29 22:28:27 +00:00
Tobias Junghans
35366fea78
Use QStringView for Qt >= 5.15.2
...
QStringView::mid() behaves identically to QString::mid() starting with
Qt 5.15.2.
2021-05-29 22:28:27 +00:00
Tobias Junghans
3e90e13d5e
Use Qt::endl
2021-05-29 22:28:27 +00:00
Tobias Junghans
91ff0aa0db
Use new QAbstractSocket::errorOccurred() signal
...
It's in Qt 5.15 already.
2021-05-29 22:28:27 +00:00
Tobias Junghans
564e906dd1
Use QString::split(..., Qt::SplitBehavior, ...)
...
It's in Qt 5.14 already.
2021-05-29 22:28:27 +00:00
Tobias Junghans
d3d16fcc17
CI: switch to Ubuntu 20.10 to have Qt >= 5.14
...
KDE Frameworks requires Qt 5.14 already so we should adopt that. This
will also save quite a few #ifdefs when migrating to Qt 6.
2021-05-29 22:28:27 +00:00
Mark Nalimov
797b430540
Minor docs fix
2021-05-24 11:01:43 +03:00
Albert Astals Cid
ecdd0538dd
Fix CMSut::signverify_message_invalid failing "randomly"
...
Once in a blue moon it happens that signedResult1[signedResult1.size() -
2] is a 0, so setting it to 0 doesn't break the signature validation, so
check if it's a 0 and if it is, set it to 1
2021-02-05 16:45:07 +00:00
Albert Astals Cid
aa26b43be2
CI: give the plugin path for tests, otherwise some are not found
...
also run the tests on the debian:unstable CI to have testing with
different versions of dependencies
2021-02-05 16:47:13 +01:00
Albert Astals Cid
bc94cc08e1
openssl 1.1.1i made verification of empty messages always succeed
...
BUGS: 432519
2021-02-05 16:40:19 +01:00
Albert Astals Cid
2d7e7e8242
increase version
2021-02-02 23:51:45 +01:00
Albert Astals Cid
32275f1a74
Move moc include outside the QCA namespace
...
It's the right thing to do and also fixes build with gcc 11
2021-01-24 20:07:09 +00:00
Albert Astals Cid
1bcde93efc
CI: Switch to new clang-format
2021-01-24 17:54:53 +00:00
Albert Astals Cid
e9e0f2085d
Update the Qt requirement to what we actually test on CI
2020-12-10 19:51:38 +01:00
Albert Astals Cid
bd31ef1587
gitlab-ci: use eatmydata in apt-get
...
apt-get uses several fsync() calls on each package it installs, and that's
very slow, especially on non-SSD. eatmydata turns fsync into no-op, which
makes package installation much faster (it can cause corruption if there's
power loss or similar, but that doesn't matter in CI where we throw away
the whole container anyway).
2020-12-09 22:32:13 +00:00
Albert Astals Cid
7174e6ed70
Disable performance-no-automatic-move
...
It's too noisy with Qt classes
2020-12-09 21:33:05 +01:00
Albert Astals Cid
0684db8255
Add .git-blame-ignore-revs and some instructions for clang-format
2020-09-07 02:29:40 +02:00
Albert Astals Cid
dfb96ac596
Check clang-format at CI stage
2020-09-07 02:29:36 +02:00
Albert Astals Cid
f62a8ee8f7
Run clang-format
...
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \;
If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-09-07 02:13:47 +02:00
Sergey Ilinykh
04dbe5ca7d
Add clang-format file
2020-09-07 02:13:09 +02:00
Albert Astals Cid
db8ff052a9
Add a clang-format off marker
...
Otherwise clang-format unoptimizes the code
2020-09-07 02:13:09 +02:00
Albert Astals Cid
f88abb0697
Rewrite code a bit so clang-format doesn't break exceptions
...
clazy and clang-tidy comments needs to in the proper place
2020-09-07 02:11:39 +02:00
Sergey Ilinykh
0fd3c4cb26
Fixed windows.h auto ordering
2020-09-06 23:46:15 +02:00
Albert Astals Cid
0d174fea58
More values().contains() -> contains()
2020-09-06 23:41:53 +02:00
Albert Astals Cid
fb926ae7b2
Rewrite the values().contains() with a single contains()
2020-09-06 21:31:10 +02:00
Albert Astals Cid
6f4e01f92d
qca-gcrypt: mark functions only used in one file as static
2020-07-13 18:59:28 +02:00
Alexander Volkov
71a1f95cba
qca-gcrypt: Add support for HKDF
2020-07-13 16:55:56 +00:00
Larry Shaffer
f899a6aaad
Add macOS framework major version
...
- Use of major is like Qt, Qwt, etc.
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
2020-07-06 14:25:24 +03:00
Albert Astals Cid
6c5486c227
Increase version
2020-07-04 10:51:52 +02:00
Albert Astals Cid
dd323fb8dc
Update rootcerts.pem
2020-07-04 10:51:30 +02:00
Albert Astals Cid
6ee845ba60
ossl: Fix memory leak when querying for tls supported cipher suites
2020-06-22 22:55:29 +02:00
Albert Astals Cid
5d027c8012
tlsunittest: Fix memory leak
2020-06-22 22:53:55 +02:00
Albert Astals Cid
e23bf00919
pipeunittest: Fix memory leak
2020-06-22 22:52:44 +02:00
Albert Astals Cid
cfc80a9d6e
ossl: Fix memory leak in CRL handling
...
ASN1_INTEGER_to_BN returns memory that needs to be freed
2020-06-22 22:46:13 +02:00
Albert Astals Cid
a014df24c5
ossl: Fix memory leak in fromPKCS12
2020-06-22 22:03:39 +02:00
Albert Astals Cid
c68a5e449f
Fix memory leak in keybundle unittest
2020-06-22 22:03:39 +02:00