16 Commits

Author SHA1 Message Date
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
Justin Karneges
011a2f0164 oops, qputenv is not available in 4.2. copy it from 4.4 for now.
svn path=/trunk/kdesupport/qca/; revision=835695
2008-07-21 01:11:59 +00:00
Justin Karneges
dcd691b861 use qgetenv/qputenv for better portability
svn path=/trunk/kdesupport/qca/; revision=835693
2008-07-21 01:04:48 +00:00
Justin Karneges
0222c7c85d reload qca anytime we change $GNUPGHOME. qca-gnupg cannot be expected
to automatically deal with gnupg keyrings changing locations.  maybe in 
the future we can add some api to handle this, but right now I don't see 
a strong use-case for it.

svn path=/trunk/kdesupport/qca/; revision=800339
2008-04-23 22:48:40 +00:00
Jarosław Staniek
8606df0067 - (windows) fix conflict with setenv() implemented by kdewin32:
rename qca's implementation to qca_setenv(), on non-windows it is still original setenv()


svn path=/trunk/kdesupport/qca/; revision=768830
2008-01-30 18:52:33 +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
d7a8978a1a EBN fix.
svn path=/trunk/kdesupport/qca/; revision=705820
2007-08-28 17:06:26 +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
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
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
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
Christian Ehrlicher
78406a6651 win32 compile
- update openssl to search for libeay too
- saslservtests needs wsock32
- export CertificateInfoPair to fix qca-openssl linking
- add setenv() to pgpunittest.cpp for win32 - maybe add a check for setenv()

svn path=/trunk/kdesupport/qca/; revision=633918
2007-02-15 19:17:56 +00:00
Brad Hards
5a293c84c1 Add in a new unit test, this one for PGP.
At the moment, this just check the keystore
functionality. It also doesn't work too well
for the case where there are no public keys.
However I think this is a problem with the 
provider, not with the tests.

svn path=/trunk/kdesupport/qca/; revision=614289
2006-12-17 07:25:46 +00:00