365 Commits

Author SHA1 Message Date
Brad Hards
eb73d89811 Add unit test for CAST5.
svn path=/trunk/kdesupport/qca/; revision=707708
2007-09-02 18:50:34 +00:00
Brad Hards
d630a8ccd2 Remove tests for some algos (mainly ephemeral Diffie Hellman)
that aren't reliably supported by OpenSSL (i.e. some versions
do, but later versions often don't).

This test will always be a bit brittle, because distros can
customise the build of OpenSSL so much.

svn path=/trunk/kdesupport/qca/; revision=707705
2007-09-02 18:47:40 +00:00
Brad Hards
679e89acd2 Add tests for normal message format signature/verification,
and disable display of the ugly diagnostics that now work
in the gnupg plugin.


svn path=/trunk/kdesupport/qca/; revision=706044
2007-08-29 09:28:44 +00:00
Brad Hards
0012b83b0e openssl -> ossl conversion.
svn path=/trunk/kdesupport/qca/; revision=705891
2007-08-28 20:26:26 +00:00
Brad Hards
d7a8978a1a EBN fix.
svn path=/trunk/kdesupport/qca/; revision=705820
2007-08-28 17:06:26 +00:00
Justin Karneges
0df00cd901 match the cmake unittests
svn path=/trunk/kdesupport/qca/; revision=705474
2007-08-28 00:46:06 +00:00
Brad Hards
af71a104fe Make sure we have the plugin before checking for
features it provides.

svn path=/trunk/kdesupport/qca/; revision=703516
2007-08-22 18:20:46 +00:00
Justin Karneges
0046132348 match cmake build
svn path=/trunk/kdesupport/qca/; revision=703487
2007-08-22 16:20:58 +00:00
Brad Hards
d7349fbc05 OK, I now understand why there was a trailing newline - that
comes from gpg.

From man gpg:
       --clearsign
              Make a clear text signature. The content in a clear text signature is readable without  any  special  software.
              OpenPGP  software  is only needed to verify the signature. Clear text signatures may modify end-of-line whites-
              pace for platform independence and are not intended to be reversible.

So it is fragile to compare input and output. The best we can
do is trim the whitespace, which is really easy if we convert
the byte array to a QString and then called trimmed().

svn path=/trunk/kdesupport/qca/; revision=703479
2007-08-22 15:47:22 +00:00
Justin Karneges
cbce996747 match the cmake unittest list
svn path=/trunk/kdesupport/qca/; revision=703186
2007-08-22 06:32:11 +00:00
Brad Hards
ec8f213162 Add additional tests for PGP signing/verification.
This appears to show a problem with either signing (less likely)
or verification (more likely) for clearsigned messages.

CCMAIL: justin@affinix.com

svn path=/trunk/kdesupport/qca/; revision=702801
2007-08-21 07:45:31 +00:00
Justin Karneges
49414b8e66 fix threading issue
svn path=/trunk/kdesupport/qca/; revision=700123
2007-08-14 21:34:33 +00:00
Brad Hards
0f059542ef Add another test to the PGP unit test suite.
Not working correctly at this stage.

CCMAIL: justin@affinix.com


svn path=/trunk/kdesupport/qca/; revision=699068
2007-08-11 23:14:01 +00:00
Brad Hards
113fe64aac Remove TODO that is now done.
svn path=/trunk/kdesupport/qca/; revision=696969
2007-08-06 12:12:14 +00:00
Brad Hards
55c43acae1 Add unit tests for encryption/decryption using
AES 128, 192 and 256 with PKCS7 padding.

svn path=/trunk/kdesupport/qca/; revision=696964
2007-08-06 12:05:08 +00:00
Brad Hards
67e657c652 Enable the PGP unit test, matching qmake.
svn path=/trunk/kdesupport/qca/; revision=695889
2007-08-03 08:07:39 +00:00
Justin Karneges
57b603cc54 enable pgp unittest
svn path=/trunk/kdesupport/qca/; revision=695820
2007-08-03 02:02:09 +00:00
Brad Hards
fd10fb89be Stop it segfaulting.
The problem isn't really in the test, but in QCA. This is
really a workaround.

svn path=/trunk/kdesupport/qca/; revision=691252
2007-07-23 08:12:54 +00:00
Brad Hards
2f9411e61f Update to new keystore API.
This example is segfaulting for me.

svn path=/trunk/kdesupport/qca/; revision=690824
2007-07-22 10:36:40 +00:00
Brad Hards
e1c4a32119 Add CA tools used for test certificate generation.
These are from openssl.

svn path=/trunk/kdesupport/qca/; revision=690746
2007-07-22 04:32:00 +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
f1b60f1370 Update the certificates / keys used for testing Cryptographic
Message Syntax. The previous cert was from openvalidation.org,
but had expired.

svn path=/trunk/kdesupport/qca/; revision=690743
2007-07-22 04:18:42 +00:00
Justin Karneges
6ffa0b891f enable pipeunittest
svn path=/trunk/kdesupport/qca/; revision=690329
2007-07-20 18:09:19 +00:00
Brad Hards
f0607188c0 Add some additional testing of secure qpipe.
The added qTest() lines seem to be necessary to make it work 
in valgrind.

svn path=/trunk/kdesupport/qca/; revision=688609
2007-07-16 12:14:56 +00:00
Brad Hards
3bf452555e Use QTest::qWait() instead of repeated calls to processEvents()
Add testing for signals.

svn path=/trunk/kdesupport/qca/; revision=686457
2007-07-11 11:21:45 +00:00
Justin Karneges
d64855e335 enable the pipe ends and spin the eventloop as necessary
svn path=/trunk/kdesupport/qca/; revision=686147
2007-07-10 18:46:32 +00:00
Brad Hards
68ff3782fa Add in a test for the QPipe classes - this doesn't work yet.
In fact, it segfaults.

It looks like there is a problem in the way QPipe is set up.
Valgrind or gdb shows the problem.

CCMAIL: justin@affinix.com

svn path=/trunk/kdesupport/qca/; revision=685983
2007-07-10 09:10:32 +00:00
Brad Hards
6b9080fcc6 Update the test plan to reflect the "make test" target for
qconf/qmake.

svn path=/trunk/kdesupport/qca/; revision=685631
2007-07-09 10:56:41 +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
59b43209dc Update description for unit testing, including trying to provide
a bit of guidance to users.


svn path=/trunk/kdesupport/qca/; revision=685164
2007-07-08 05:40:09 +00:00
Brad Hards
f3d4868398 Rework the MD5 and SHA1 file tests to remove reliance
on additional files (not provided with QCA). 

This also makes the tests run much, much faster.

svn path=/trunk/kdesupport/qca/; revision=685152
2007-07-08 04:50:36 +00:00
Brad Hards
2ba165058f This test is worth keeping for when we properly support
Sender Name Indication (i.e. with openssl 0.9.9)


svn path=/trunk/kdesupport/qca/; revision=685120
2007-07-08 04:29:59 +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
Brad Hards
0caa39cf1a Reduce the scope of the unit testing, in order to make the tests
less brittle.

Specifically, the test of which providers are available is now gone,
and the capabilities test now only checks for the "built-in" providers.


svn path=/trunk/kdesupport/qca/; revision=685059
2007-07-08 02:11:06 +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
bf27824a9a use MemoryRegion instead of SecureArray, for hash, mac, and pkey sign/verify
svn path=/trunk/kdesupport/qca/; revision=677315
2007-06-18 21:31:14 +00:00
Justin Karneges
841a205069 remove unnecessary secure array usage in arrayToHex
svn path=/trunk/kdesupport/qca/; revision=674778
2007-06-13 02:30:43 +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
2171081a29 some nit api changes
svn path=/trunk/kdesupport/qca/; revision=673037
2007-06-08 20:31:50 +00:00
Justin Karneges
c025229198 Provider qcaVersion, version, and deinit
svn path=/trunk/kdesupport/qca/; revision=673032
2007-06-08 20:05:04 +00:00
Justin Karneges
653a70cf45 correct the cpp and target name
svn path=/trunk/kdesupport/qca/; revision=671062
2007-06-03 16:48:02 +00:00
Brad Hards
a20dee01fe Additional test cases.
svn path=/trunk/kdesupport/qca/; revision=670973
2007-06-03 10:17:23 +00:00
Brad Hards
b796b86701 Add a new unit test, for testing the two metatype
functions added by QCA.

svn path=/trunk/kdesupport/qca/; revision=670968
2007-06-03 09:47:56 +00:00
Brad Hards
231f7f8eb8 Switch Cipher::blockSize to return int, rather than unsigned int.
I think unsigned int was a bit more descriptive, but certainly
is non-standard.

svn path=/trunk/kdesupport/qca/; revision=670664
2007-06-02 11:22:26 +00:00
Christian Ehrlicher
cfc6506474 add CMakeLists.txt for examples/tlssocket
but can't create a valid one for filewatchunittest :(

svn path=/trunk/kdesupport/qca/; revision=668004
2007-05-24 18:55:45 +00:00
Justin Karneges
bdb5900aeb include relative to pri
svn path=/trunk/kdesupport/qca/; revision=662412
2007-05-08 04:43:37 +00:00
Justin Karneges
2949810720 there is no header file
svn path=/trunk/kdesupport/qca/; revision=658185
2007-04-26 08:50:44 +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
Brad Hards
2d3456d695 make sure we have appropriate provider support before
trying certificate ops.

sorry for the random whitespace changes.

svn path=/trunk/kdesupport/qca/; revision=655442
2007-04-18 11:21:04 +00:00