4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-11 18:29:33 +00:00

357 Commits

Author SHA1 Message Date
Brad Hards
977dc93ac4 Merge .h into .cpp, and add CMake support
svn path=/trunk/kdesupport/qca/; revision=594701
2006-10-12 02:11:35 +00:00
Brad Hards
f73bfc98af Add forgotten CMake file.
svn path=/trunk/kdesupport/qca/; revision=594699
2006-10-12 02:10:00 +00:00
Brad Hards
a7a11f34b6 Merge the .h into the .cpp, and update qmake files
Also add in initial CMake support.

svn path=/trunk/kdesupport/qca/; revision=594698
2006-10-12 02:05:39 +00:00
Brad Hards
bcdd7ba6f4 Add CMake support for the BigInteger unittest.
Also integrate the .h contents into the .cpp, to make it
easier to manage and to do the CMake work. The qmake
support has been updated to match.

svn path=/trunk/kdesupport/qca/; revision=594693
2006-10-12 01:11:54 +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
Laurent Montel
62426004d5 Commit cmakelists.txt but it doesn't want to link
svn path=/trunk/kdesupport/qca/; revision=591441
2006-10-02 12:32:39 +00:00
Laurent Montel
48157e0d49 Merge my patch and duncan patch
CCMAIL: duncan@kde.org

Now we can compile qca with cmake
Need to fix plugins compile and unitest and other small error.

svn path=/trunk/kdesupport/qca/; revision=591302
2006-10-02 09:59:51 +00:00
Brad Hards
11d097e08d Finally commit the big "primitives" API change.
Essentially if you had previously used a subclass
of Cipher, Hash or MAC, then you need to change
your code. The change is pretty simple - you
just pass a string name as the first argument.


svn path=/trunk/kdesupport/qca/; revision=576204
2006-08-23 12:38:39 +00:00
Brad Hards
e281c22103 Add another unit test - this one checks client
side providers.

There is a bit to be done on this, but right now
it demonstrates the problem I'm seeing with the
AES-CMAC example, in that the plugin loader 
segfaults.

CCMAIL: justin@affinix.com

svn path=/trunk/kdesupport/qca/; revision=562878
2006-07-16 05:32:52 +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
ea463b959b Unit tests for the "message" mode for Cryptographic
Message Syntax.

svn path=/trunk/kdesupport/qca/; revision=539588
2006-05-11 02:07:34 +00:00
Brad Hards
c4843dbf07 Add unit test to verify that bug 126735 isn't a problem
with QCA 2. Holger Tasch identified the problem with QCA1,
however it doesn't appear to be a problem with QCA2.

CCMAIL: holger.tasch@gmx.de
CCBUG: 126735


svn path=/trunk/kdesupport/qca/; revision=538936
2006-05-09 11:15:55 +00:00
Brad Hards
ab309e3be9 Update the CMS unit test to test signing and
verifying as well. We now need the root certificate
for the verification.

svn path=/trunk/kdesupport/qca/; revision=529415
2006-04-13 11:32:55 +00:00
Brad Hards
51a2ef6a3e OK, it turns out that when you reset(), you have
to put the keys/certs back in. With that, it stops
asserting. Then it just fails to compare the messages.
If you encrypt the same data, with the same certs,
twice, you don't get the same result each time.

So I added the decrypt part, including re-use, and
checked that if you encrypt the same data twice, then
each decrypt produces the same result, and that result
is exactly what you started with. The test now passes.

svn path=/trunk/kdesupport/qca/; revision=529009
2006-04-12 11:48:19 +00:00
Brad Hards
76c1cff1b2 Start of a unit test case for Cryptographic
Message Syntax SecureMessage.

At the moment, it assert()s in the repeated use
of a SecureMessage. Until that is sorted out, it
can't be added to the full test suite.

svn path=/trunk/kdesupport/qca/; revision=528990
2006-04-12 10:20:04 +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
c87caec977 Add some more tests.
Use QTest::qWait() instead of the processEvents() call.

svn path=/trunk/kdesupport/qca/; revision=525525
2006-04-02 11:36:54 +00:00
Justin Karneges
05f90c03ce need to spin the event loop to get the signal
svn path=/trunk/kdesupport/qca/; revision=525450
2006-04-02 05:04:58 +00:00
Brad Hards
2c93c81fea Update the test framework for the new tests.
svn path=/trunk/kdesupport/qca/; revision=524829
2006-03-31 10:49:05 +00:00
Brad Hards
a644db03be Move DSA unit tests to subdirectory, and convert
to QTestLib.

svn path=/trunk/kdesupport/qca/; revision=524825
2006-03-31 10:44:58 +00:00
Brad Hards
a9cfd8a2a2 Convert the RSA unit test to QTestLib and move it
to a sub directory.

svn path=/trunk/kdesupport/qca/; revision=524822
2006-03-31 10:42:02 +00:00
Brad Hards
e15ec3d1b8 Move Random unittest into subdir, and convert
to QTestLib.

svn path=/trunk/kdesupport/qca/; revision=524821
2006-03-31 10:39:03 +00:00
Brad Hards
76208ea4a7 Add a simple (but br0ken) unit test for the
FileWatcher support class.

svn path=/trunk/kdesupport/qca/; revision=524341
2006-03-30 10:38:13 +00:00
Brad Hards
10a89d96d7 Complete a bit more of the NIST PKITS test suite.
This covers all of 4.3, and the first part of 4.4.

There are a number of failing tests. At this stage
I think they represent problems with QCA or (more
likely) problems with the version of openssl I am
using.

svn path=/trunk/kdesupport/qca/; revision=524340
2006-03-30 10:36:22 +00:00
Brad Hards
91f937adbd Move the KeyLength unit tests to QTestLib and link
them into the test framework.

This is a very trivial test, but it already exists and 
I wanted to clean up the left-over tests.

svn path=/trunk/kdesupport/qca/; revision=522582
2006-03-26 06:08:00 +00:00
Brad Hards
b045507d1d Add the start of a set of unit tests for TLS.
Also do minor cleanups of the test framework.

svn path=/trunk/kdesupport/qca/; revision=519875
2006-03-18 05:06:10 +00:00
Brad Hards
a2ae0126a3 Revert previous change - not required after all.
svn path=/trunk/kdesupport/qca/; revision=519874
2006-03-18 04:59:59 +00:00
Brad Hards
cd6e96743a Temporary hack to work around Qt4 bug.
svn path=/trunk/kdesupport/qca/; revision=519872
2006-03-18 04:47:18 +00:00
Brad Hards
61941123da Add tests for Netscape Security Services (from Mozilla) where
appropriate.

svn path=/trunk/kdesupport/qca/; revision=519871
2006-03-18 04:45:09 +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
cfb99eef8b Minor rework, mainly to add openssl to tests.
svn path=/trunk/kdesupport/qca/; revision=510460
2006-02-17 11:20:22 +00:00
Brad Hards
81765d206b Add date validity tests from PKITS section 4.2.
Fix typo error in result for 4.1.6 - not valid, signature
on end entity certificate is invalid.

Also remove suggestion that libgcrypt will one day have
Certificate / CRL handling.

svn path=/trunk/kdesupport/qca/; revision=508539
2006-02-12 06:52:48 +00:00
Brad Hards
601f9dd4d9 Add a new unit test, for public key certificate ops.
These tests, and the test suite certificates and CRLs
are from the NIST Public Key Interoperability Test
Suite (PKITS), which is available from 
http://csrc.nist.gov/pki/testing/x509paths.html

At the moment, this unit test only covers the 6
tests in 4.1 of the NIST test documentation.


svn path=/trunk/kdesupport/qca/; revision=508176
2006-02-11 01:06:44 +00:00
Brad Hards
6b0ff4b899 Add the Mozilla Netscape Security Services plugin
to the tests.

svn path=/trunk/kdesupport/qca/; revision=506618
2006-02-07 10:10:36 +00:00
Brad Hards
03fad3bb53 Add X509 certificate unit test into the build
svn path=/trunk/kdesupport/qca/; revision=505142
2006-02-03 09:32:44 +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
cf029fd41d Add certificate unit test into build.
svn path=/trunk/kdesupport/qca/; revision=503478
2006-01-29 11:49:05 +00:00
Brad Hards
b711972b95 Moved into certunittest directory.
svn path=/trunk/kdesupport/qca/; revision=503475
2006-01-29 11:43:57 +00:00