27 Commits

Author SHA1 Message Date
Albert Astals Cid
0816a04f42 qSort -> std::sort 2020-01-19 17:35:06 +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
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
917c314926 updated QcaTest* certificates in certunittest
old certificates expired in 2012 and this unittest failed.
2013-07-31 21:29:33 +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
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
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
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
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
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
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
Brad Hards
a68a9ea320 Switch the certificate handling unit test over to
the QTestLib framework.

svn path=/trunk/kdesupport/qca/; revision=503466
2006-01-29 11:24:50 +00:00