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
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
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
ad1b9e1b07
Enable QT_NO_CAST_FROM_ASCII
2020-02-15 10:21:12 +00:00
Albert Astals Cid
8b171279e9
clazy: enable qstring allocation warning
2020-02-13 01:07:24 +01:00
Albert Astals Cid
c0ac498159
clazy: Enable container-anti-pattern
...
Except in the tests where being slow and convenient is better than fast
2020-02-12 16:55:18 +01:00
Albert Astals Cid
0398e228de
Add clang-tidy to the clazy CI
2020-01-30 16:55:33 +01:00
Albert Astals Cid
6a1d268315
Enable QT_NO_CAST_FROM_BYTEARRAY
2020-01-23 17:26:29 +01:00
Albert Astals Cid
dbef5838d4
Enable QT_NO_SIGNALS_SLOTS_KEYWORDS
2020-01-22 19:31:28 +01:00
Albert Astals Cid
0816a04f42
qSort -> std::sort
2020-01-19 17:35:06 +01:00
Albert Astals Cid
d71f4c279b
Drop Qt4 support
2020-01-19 17:19:23 +01:00
Ivan Romanov
ac8b8acd37
dropped fixpaths.include
...
Use qt.conf to set plugin paths for unittests and qcatool in buildtree
2014-09-25 14:27:44 +06:00
Ivan Romanov
9504d1c8e0
cmake: put all runtime to bin when compiling
...
The most it is need for windows where no rpath and all dll's must be
in the same dir (or in PATH environment)
2014-02-02 02:35:55 +06:00
Ivan Romanov
6d690c0070
Build static QCA
...
Added new cmake variable SHARED_LIBRARY. By default is on.
When it is off QCA library, plugins, tools, examples and unittests
will be built as static. Also if is used static Qt plugins will be
built as static. Tested with Qt4.
2014-01-02 03:50:18 +06:00
Ivan Romanov
9ea9d6203f
[certunittest] fixed certs time zone
...
This certs time uses GMT.
2013-12-09 03:41:39 +06:00
Ivan Romanov
9462469bb5
dropped bat, qconf and qmake rules
...
Now cmake rules fully works.
2013-08-26 00:55:17 +06:00
Ivan Romanov
13d0dc5e6d
added cmake variable QCA_LIB_SUFFIX
...
QCA_LIB_SUFFIX intended to replace workaround
3 major version. For building for Qt5 can be used
-DQCA_LIB_SUFFIX=qt5 for example. Result will be
named libqca2-qt5.so.2.0.3 library for Linux.
Also this suffix will be applied for qca2 pkg config file,
qcatool2 binary and qcatool2 manpage.
I hope that is a good way to resolve the building conflict
against qt4 and qt5.
2013-08-26 00:55:01 +06:00
Ivan Romanov
917c314926
updated QcaTest* certificates in certunittest
...
old certificates expired in 2012 and this unittest failed.
2013-07-31 21:29:33 +06:00
Ivan Romanov
4f55e9b680
fix Windows line endings
2013-07-20 23:06:21 +06:00
David Faure
57ce5c3bc9
Port to Qt5 by Ivan Romanov <drizt@land.ru>
...
svn path=/trunk/kdesupport/qca/; revision=1347515
2013-04-02 11:00:43 +00:00
Brad Hards
5af426b83a
Add support for certificates with SHA2 family digest algorithms.
...
svn path=/trunk/kdesupport/qca/; revision=992617
2009-07-07 12:24:51 +00:00
Brad Hards
515bbd19e1
Update to use new certificates. The old ones were
...
from openvalidation.org, but have expired.
This test should now pass.
svn path=/trunk/kdesupport/qca/; revision=690744
2007-07-22 04:22:00 +00:00
Brad Hards
6302b633dc
Change the target for the qmake/qconf based unit tests to be
...
"make test", to match cmake.
svn path=/trunk/kdesupport/qca/; revision=685629
2007-07-09 10:52:52 +00:00
Brad Hards
5547b5554b
Handle the case where we don't have a provider for Certificate or CRL.
...
This should make the tests less fragile.
svn path=/trunk/kdesupport/qca/; revision=685068
2007-07-08 03:03:39 +00:00
Justin Karneges
6152c977c0
follow qca-openssl -> qca-ossl rename
...
svn path=/trunk/kdesupport/qca/; revision=681691
2007-06-29 21:30:22 +00:00
Justin Karneges
aabc8961d8
Hostname -> HostName
...
svn path=/trunk/kdesupport/qca/; revision=680274
2007-06-25 20:01:47 +00:00
Justin Karneges
ab782c5ff4
remove unnecessary secure array usage from cert api
...
svn path=/trunk/kdesupport/qca/; revision=674313
2007-06-12 02:30:58 +00:00
Justin Karneges
5c6439a6c1
by default, all unittests/examples are console without a mac.app bundle
...
svn path=/trunk/kdesupport/qca/; revision=656265
2007-04-20 20:08:47 +00:00
Alon Bar-Lev
9f9f2d05d6
QSecureArray/QBigInteger -> QCA::SecureArray/QCA::BigInteger fixups
...
svn path=/trunk/kdesupport/qca/; revision=653605
2007-04-13 19:19:18 +00:00
Justin Karneges
e6a4a57edd
update to build against the right qca lib name
...
svn path=/trunk/kdesupport/qca/; revision=648311
2007-03-30 23:42:53 +00:00
Brad Hards
131bf8eaac
Add automated unittesting support. Now, you can
...
just "make test" and it will run the appropriate
tests.
svn path=/trunk/kdesupport/qca/; revision=609827
2006-12-02 11:53:32 +00:00
Brad Hards
96be553cdd
Add this for a future test.
...
svn path=/trunk/kdesupport/qca/; revision=594719
2006-10-12 04:20:15 +00:00
Brad Hards
3295e0ec4e
Add in CMake support for this test.
...
Gratutiously delete some whitespace
Add a test to verify that we don't crash on trying to
import files that don't exist.
svn path=/trunk/kdesupport/qca/; revision=594692
2006-10-12 00:53:26 +00:00
Brad Hards
b7441634a2
Delete unused file - this got folded into certunittest.cpp
...
svn path=/trunk/kdesupport/qca/; revision=594691
2006-10-12 00:51:04 +00:00
Brad Hards
95737b7486
Update the X.509 certificates unit test.
...
Changes:
1. The whole test is now a single file, so it is easier
to update, and to make the CMake integration simpler.
2. The old test certificates have expired. Those are
now used to test certificate expiry, and new certificates
(from http://openvalidation.org ) have been added.
3. The old client and server cert tests have been updated
to reflect the updated certificates.
This passes for me on Qt 4.1.4, using qmake/qconf.
svn path=/trunk/kdesupport/qca/; revision=594680
2006-10-12 00:05:20 +00:00
Brad Hards
1fba679d79
Add tests for matchHostname() against altnames. This
...
fails at the moment, although I haven't checked the
implementation to determine why.
CCBUG:107604
svn path=/trunk/kdesupport/qca/; revision=540562
2006-05-14 00:34:57 +00:00
Brad Hards
85f9df6a47
Update the test suite to include additional tests.
...
One test covers certificates in DER format.
The other test is intended to demonstrate a problem
that we currently have with altname handling - we only
manage to provide one altname, irrespective of how
many there are.
svn path=/trunk/kdesupport/qca/; revision=540400
2006-05-13 11:07:11 +00:00
Brad Hards
a79d26376a
Add in another couple of test certificates for
...
future unit testing.
svn path=/trunk/kdesupport/qca/; revision=540397
2006-05-13 10:58:02 +00:00
Brad Hards
3fab426b09
Add test steps to copy and compare two null certificates.
...
svn path=/trunk/kdesupport/qca/; revision=525938
2006-04-03 11:43:37 +00:00
Brad Hards
ec8a3946d6
Update to remove the signature() calls.
...
svn path=/trunk/kdesupport/qca/; revision=525921
2006-04-03 10:22:47 +00:00
Brad Hards
0882bfd13b
Add another CertificateRequest test case.
...
svn path=/trunk/kdesupport/qca/; revision=513709
2006-02-26 06:24:36 +00:00
Brad Hards
41d28134db
Add another CSR, in preparation for another test case.
...
svn path=/trunk/kdesupport/qca/; revision=513707
2006-02-26 05:57:55 +00:00
Brad Hards
1005503ee3
Add CSR test certificate
...
svn path=/trunk/kdesupport/qca/; revision=513686
2006-02-26 04:19:47 +00:00
Brad Hards
45c867971b
Add tests for CertificateRequest
...
svn path=/trunk/kdesupport/qca/; revision=513685
2006-02-26 04:17:51 +00:00
Brad Hards
9c415f0520
Add a test for XMPP and DNS extensions.
...
svn path=/trunk/kdesupport/qca/; revision=512683
2006-02-23 10:39:39 +00:00
Brad Hards
f63aaf3c2a
Add CRL unit test support.
...
svn path=/trunk/kdesupport/qca/; revision=512672
2006-02-23 09:49:56 +00:00
Brad Hards
31c3358bd4
Add certificate signature support
...
svn path=/trunk/kdesupport/qca/; revision=505141
2006-02-03 09:22:55 +00:00
Brad Hards
de66b015b0
Add test coverage for a cert that caused crashes.
...
svn path=/trunk/kdesupport/qca/; revision=504490
2006-02-01 10:58:56 +00:00
Brad Hards
1e6259761d
The problems are now fixed.
...
svn path=/trunk/kdesupport/qca/; revision=504480
2006-02-01 10:06:21 +00:00