2407 Commits

Author SHA1 Message Date
Bartosz Brachaczek
0e2dd07cd1 Remove pointer to deinit() routine from QCoreApplication at deinitialization
REVIEW: 115159
2014-01-21 13:23:11 +06:00
Uwe L. Korn
9537815da5 Declare correct Qt version for pkg-config
REVIEW: 115050
2014-01-17 13:56:50 +06:00
Ivan Romanov
e2ff4f0a61 new cmake option DEVELOPER_MODE
DEVELOPER_MODE is designed for various developer issues. Now this mode
forced to use plugins only from build tree. To avoid excess plugins
from system QCA. Also now not need to set QT_PLUGIN_PATH to use plugins
from QCA build tree.
2014-01-07 04:47:18 +06:00
Ivan Romanov
e5ec390625 fix hardcoded plugins path for unittests 2014-01-07 00:24:49 +06:00
Adnan RIHAN
9e0ddb716d Overloaded "makeKey" to derive a password depending on a time factor
Overloaded "makeKey" in QCA::KeyDerivationFunction + botan/gcrypt/ossl plugins
to allow deriving a master password depending on a time factor in addition to
only giving an arbitrary iteration count.
Deriving with a time delays exhaustive research on master passwords by
increasing the time needed to try each password (the derivation time)
Added corresponding unittests.

REVIEW: 114503
2014-01-06 18:38:21 +01:00
Ivan Romanov
2817b31e06 pgpunittest: copy keys* folders to keys*_work
gpg changes trustdb.gpg. But this file under vcs. So just copy this
file to another folder.
2014-01-06 00:42:44 +06:00
Ivan Romanov
b0c8788d9a tlsunittest: don't check some cipher suites
openssl very configurable. There is no any guarantee that this
or another cipher suite will be in current building. So I just
took that Fedora cipher suites is minimal default list and
I believe that it will be true in every case.
2014-01-05 01:54:18 +06:00
Ivan Romanov
7d7535216a cipherunittest: disable qca-gcrypt for some tests
Seems Cipher support is not finished in qca-gcrypt. When it will be
done need to enable them again.
2014-01-03 22:33:43 +06:00
Ivan Romanov
80048dc7b9 qca-nss: fixed KeyLenght for Cipher
Before was KeyLength(0, 0, 0). Seems it is dummy.
2014-01-03 22:14:14 +06:00
Ivan Romanov
c820094625 filewatchunittest: show 'please wait' message 2014-01-03 19:43:45 +06:00
Ivan Romanov
01e2b1d1cd enabled filewatchunittest
also fixed cmake building of this unittest
2014-01-03 19:34:19 +06:00
Ivan Romanov
6dd10a4e91 Dropped useless script 2014-01-03 19:02:50 +06:00
Ivan Romanov
8098fc925f Added cmake doc target
Do not use doxygen directly. Often cmake build out-of-source.
So it usefult to have doc make target. It is required to generate
documentation for generating header file (qca_version.h) which places
in build tree.
2014-01-03 15:53:19 +06:00
Ivan Romanov
5bfb2dc9bf bump version to 2.1.0 2014-01-03 15:19:40 +06:00
Ivan Romanov
6bf4e5213e Define QCA version only in cmake rules
Added new generated public include qca_version.h.
Also add new version DEFINES
  QCA_MAJOR_VERSION
  QCA_MINOR_VERSION
  QCA_PATCH_VERSION
  QCA_VERSION_STR
  QCA_VERSION_CHECK(major, minor, patch)

and new version functions
  const char *qcaVersionStr()
  int qcaMajorVersion()
  int qcaMinorVersion()
  int qcaPatchVersion()
2014-01-03 14:37:00 +06:00
Bartosz Brachaczek
506d9ef311 Add unloadProvider() function for symmetry with insertProvider()
REVIEW: 114690
2014-01-02 17:23:42 +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
4edfa3fcba fixed previous commit 2014-01-02 00:02:12 +06:00
Ivan Romanov
1c09b7b8b1 Dropped own FindQt4 cmake module use system one 2014-01-01 22:32:10 +06:00
Ivan Romanov
94ab628411 Added botan-config-1.10 to list possible botan-config names
Such name is used on Fedora 20.
2014-01-01 21:26:43 +06:00
Ivan Romanov
dc5af5c374 fixed mozcerts building rules
Use QCA_SUFFIX when building mozcerts.
Place mozcerts binary in ./bin after linking.
2014-01-01 05:47:55 +06:00
Ivan Romanov
087357a810 Added cmake BUILD_TOOLS option
By default is 'on'. With this option will be compiled mozcerts
and qcatool.
2014-01-01 05:37:40 +06:00
Ivan Romanov
5d06579605 Use internal cache vars to choose plugins for building
It allow to know will be particular plugin build or no
in any place of cmake rules.
2014-01-01 02:10:15 +06:00
Adnan RIHAN
17cf1841f7 RSA Keys are permutable, can encrypt with private and decrypt with public
[REVIEW]: 114416
2013-12-17 06:57:26 +01:00
Ivan Romanov
9ea9d6203f [certunittest] fixed certs time zone
This certs time uses GMT.
2013-12-09 03:41:39 +06:00
Ivan Romanov
ea239aaf96 [ossl] fixed certs time zone 2013-12-09 03:32:59 +06:00
Ivan Romanov
31c9e2a76f added make uninstall target
thanks for Adnan RIHAN
2013-12-08 02:34:34 +06:00
Ivan Romanov
3048e63aa3 updated pkits certs
Also added README file which explain how certs ware got.
2013-12-07 22:08:39 +06:00
Ivan Romanov
d8993df06a small fix for previous commit 2013-12-05 01:34:56 +06:00
Ivan Romanov
7868e79a64 Mac OS X debug postfix 2013-12-04 22:51:32 +06:00
Ivan Romanov
7fd427f0c6 Corrected INSTALL file 2013-12-01 01:53:36 +06:00
Ivan Romanov
60b96878d7 fixed tab 2013-11-21 11:34:50 +06:00
Ivan Romanov
4e535d25e5 Fixed IID for all plugins
In Qt5 plugin IID is the same as identifier from Q_DECLARE_INTERFACE
2013-11-21 11:31:13 +06:00
Ivan Romanov
c7ccfc6749 dropped randomunittest
Captain Obvious suggests no way to check random numbers.
2013-11-18 02:11:22 +06:00
Ivan Romanov
2d1d815ab2 less warnings 2013-11-17 16:22:35 +06:00
Ivan Romanov
ab7ec14047 fixed rsa decription when no e or d
When private key has no Public Exponent (e) or Private Exponent (d)
need to disable blinding. Otherwise decryption will be broken.
http://www.mail-archive.com/openssl-users@openssl.org/msg63530.html
2013-11-17 16:09:14 +06:00
Ivan Romanov
e2ab61c10e Implement EME_PKCS1v15_SSL and EME_NO_PADDING in qca-ossl plugin 2013-11-17 02:33:26 +06:00
Ivan Romanov
3aafc9c4e3 added EME_PKCS1v15_SSL Encryption Algorithm
OpenSSL defines four encryption algorithms for RSA encryption. Added
new algorithm EME_PKCS1v15_SSL which identical with RSA_SSLV23_PADDING
2013-11-17 02:06:12 +06:00
Ivan Romanov
0b363c4048 Do not link against QtConcurrent 2013-11-16 20:19:31 +06:00
Ivan Romanov
094899a00c Optional plugins build
Now possible to build only required plugins and skip all others.
Also can get fail if required plugins can't be built.
By default will be build all possible plugins.

New cmake cache variables:

ENABLE_PLUGINS - list plugins to build (botan;ossl;gnupg for example).
                 Also possible values is none, auto or all
                 (by default: "auto")

WITH_${PLUGIN}_PLUGIN - to build particular plugin. Can be no, yes or
                        auto (WITH_ossl_PLUGIN=auto for example)
2013-11-11 21:08:56 +06:00
Ivan Romanov
a74aa82269 fix no watch file warnings in FileWatch
Don't start FileWatch object if no parent forlder non-existent.
Don't add file to Qt watcher class if the file non-existent.
It will be added after file creating
2013-10-18 23:49:33 +06:00
Ivan Romanov
239a0718d2 No CMAKE_INSTALL_PREFIX attention in red 2013-10-17 17:40:32 +06:00
Ivan Romanov
1b3249c6e2 changed plugins directory in build tree 2013-10-02 23:21:43 +06:00
Ivan Romanov
cb46853ffd Some directory layout fixes
In accordance with HFS applications may use a single subdirectory
under /usr/lib. If an application uses a subdirectory, all
architecture-dependent data exclusively used by the application
must be placed within that subdirectory.
2013-10-02 23:11:10 +06:00
Ivan Romanov
094929f903 renamed QCA_LIB_SUFFIX to QCA_SUFFIX
also anothers cmake optimizations
2013-10-02 22:49:27 +06:00
Ivan Romanov
013d6846fc oops, some changes for previous commit
forgot fix qcatool usage
forgot rename qcatool manpage
2013-10-02 22:23:33 +06:00
Ivan Romanov
49f312505c no digit postffix in qcatool2 name 2013-10-02 22:12:32 +06:00
Ivan Romanov
c97846b994 moved LIB_SUFFIX
LIB_SUFFIX has sense only when is using CMAKE_INSTALL_PREFIX
2013-10-02 01:45:15 +06:00
Ivan Romanov
76f0643e55 project name in lower case 2013-10-02 00:54:23 +06:00
Ivan Romanov
1bd99826d5 Revert "cmake: use GNUInstallDirs module"
It was a bad idea by default autotools uses /usr/local/lib
for installing libraries on ANY architecture. But GNUInstallDirs
uses some rules to detect a some lib suffix. Anyway seems
LIB_SUFFIX is a standard de facto way to specify this suffix
when it is need.

This reverts commit d594caf7f3285fc3be056c27079011b48b290587.
2013-10-02 00:51:42 +06:00