4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-15 03:49:33 +00:00

682 Commits

Author SHA1 Message Date
Sune Vuorela
93f60f1626 Initialize memory is a class.
REVIEW: 120101
2014-09-12 21:58:10 +02:00
Florian Fieber
2559f1779a Fix operating on keys with unrelated expired subkeys
Ignore KEYEXPIRED which will be thrown for any expired subkey regardless
of being related to the current operation. Instead, use EXPKEYSIG,
REVKEYSIG, EXPSIG and INV_RECP accordingly.

Add new errors QCA::SecureMessage::{ErrorSignerRevoked,
                                    ErrorSignatureExpired,
                                    ErrorEncryptRevoked}.

Due to GnuPG bug  <https://bugs.g10code.com/gnupg/issue1650>
encrypting to an expired or revoked key will omit the reason for failing,
resulting in the error code QCA::SecureMessage::ErrorEncryptInvalid.

REVIEW: 118567
2014-09-08 18:14:40 +06:00
Ivan Romanov
c30f5d2455 cmake: fixed typo 2014-08-22 21:48:20 +06:00
Ivan Romanov
da1f8190ac cmake: use FindPkcConfig module instead of obsoletes PKGCONFIG 2014-08-21 03:10:34 +06:00
Ivan Romanov
fbdf57f843 cmake: install .PDB files
On Windows when compiling with Visual Studio will be produced special
.pdb files for debuggins purposes. It must be put next to target
runtime (.dll or .exe) file.
2014-02-03 02:05:54 +06:00
Ivan Romanov
2502aad59d cmake: after compiling put all static libs to lib directory 2014-02-01 03:33:29 +06:00
Ivan Romanov
b049c59588 qca-botan: fixed getting result size for ciphers
Do not try to guess the result size. It rely with particular
algo and some other factors and so can be any. Just use
Pipe::remaining() for this purpose.
2014-01-30 00:33:50 +06:00
Adnan RIHAN
71f932186b Fixed "unused variable" warning in qca-gcrypt plugin 2014-01-22 11:10:19 +01: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
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
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
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
ea239aaf96 [ossl] fixed certs time zone 2013-12-09 03:32:59 +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
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
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
1b3249c6e2 changed plugins directory in build tree 2013-10-02 23:21:43 +06:00
Ivan Romanov
49f312505c no digit postffix in qcatool2 name 2013-10-02 22:12:32 +06:00
Ivan Romanov
f55fab268d cmake: some optimization with binary tree
plugins now is in lib/plugins/crypto
qcatool now is in bin
2013-10-01 08:01:50 +06:00
Ivan Romanov
9462469bb5 dropped bat, qconf and qmake rules
Now cmake rules fully works.
2013-08-26 00:55:17 +06:00
Ivan Romanov
13d0dc5e6d added cmake variable QCA_LIB_SUFFIX
QCA_LIB_SUFFIX intended to replace workaround
3 major version. For building for Qt5 can be used
-DQCA_LIB_SUFFIX=qt5 for example. Result will be
named libqca2-qt5.so.2.0.3 library for Linux.
Also this suffix will be applied for qca2 pkg config file,
qcatool2 binary and qcatool2 manpage.

I hope that is a good way to resolve the building conflict
against qt4 and qt5.
2013-08-26 00:55:01 +06:00
Ivan Romanov
0a8b9db661 [qca-ossl] compiling without AES CTR
Actual openssl versions might have no AES CTR.
In this case qca-ossl will be compiled without AES CTR.

Also dropped own obsoletes FindOpenSSL.cmake.
System version is better choice.
2013-08-25 14:47:36 +06:00
Ivan Romanov
4320c6532b [qca-ossl] added support for aes ctr 128, 192 and 256 2013-08-25 03:36:58 +06:00
Ivan Romanov
44c7fbb74f install qca to prefix or qt_prefix
Added option QCA_INSTALL_IN_QT_PREFIX to provide a way to choose
default prefix for installing qca. By default is ON.
Also added a cache vars.
  QCA_PREFIX_INSTALL_DIR
  QCA_PLUGINS_INSTALL_DIR
  QCA_BINARY_INSTALL_DIR
  QCA_LIBRARY_INSTALL_DIR
  QCA_FEATURE_INSTALL_DIR
  QCA_INCLUDE_INSTALL_DIR
  QCA_PRIVATE_INCLUDE_INSTALL_DIR
  QCA_DOC_INSTALL_DIR
  QCA_MAN_INSTALL_DIR
2013-08-24 21:26:40 +06:00
Ivan Romanov
e0cdd5db40 Revert "install qca to prefix or qt_prefix"
This reverts commit f5cb5b04dcb37ab4a62943c19646bcfa3d7d3b23.
2013-07-25 14:23:16 +06:00
Ivan Romanov
57aa7db0e3 less warnings 2013-07-24 23:52:37 +06:00
Ivan Romanov
f5cb5b04dc install qca to prefix or qt_prefix
Added option QCA_INSTALL_IN_QT_PREFIX to provide a way to choose
default prefix for installing qca. By default is ON.
Also added a cache vars.
  QCA_PREFIX_INSTALL_DIR
  QCA_PLUGINS_INSTALL_DIR
  QCA_BINARY_INSTALL_DIR
  QCA_LIBRARY_INSTALL_DIR
  QCA_FEATURE_INSTALL_DIR
  QCA_INCLUDE_INSTALL_DIR
  QCA_PRIVATE_INCLUDE_INSTALL_DIR
  QCA_DOC_INSTALL_DIR
  QCA_MAN_INSTALL_DIR
2013-07-24 22:08:12 +06:00
Ivan Romanov
4dcfaae8ab [qca-ossl] tabify sources
svn path=/trunk/kdesupport/qca/; revision=1358066
2013-06-21 14:36:30 +00:00
Ivan Romanov
b5e5481ca5 [qca-gnupg] small fix with encodings
svn path=/trunk/kdesupport/qca/; revision=1357735
2013-06-14 16:16:45 +00:00
Ivan Romanov
1b67ea10b0 [qca] improved cmake modules
gpg executable now can be gpg2 too
FindLibGcrypt now will be worked on MinGW/MSYS

svn path=/trunk/kdesupport/qca/; revision=1357722
2013-06-14 10:02:14 +00:00
Ivan Romanov
21d951e5de [qca-gnupg] fixed encodings
svn path=/trunk/kdesupport/qca/; revision=1357715
2013-06-14 08:30:12 +00:00
Ivan Romanov
cf825de1cf [qca-gnupg] some optimization in find gpg binary code
svn path=/trunk/kdesupport/qca/; revision=1357646
2013-06-13 06:01:45 +00:00
Ivan Romanov
49b303a9cf [qca-gnupg] small fix with previous commit
svn path=/trunk/kdesupport/qca/; revision=1357591
2013-06-12 09:37:22 +00:00
Ivan Romanov
3156ab625f [qca-gnupg] improved gpg binary search
gpg binary can be named gpg or gpg2 name (gpg.exe or gpg2.exe on Windows)
First search in application directory. Then on Windows lookup for
'Install Directory' key in paths:
HKCU\Software\GNU\GnuPG
HKCU\Software\Wow6432Node\GNU\GnuPG
HKLM\Software\GNU\GnuPG
HKLM\Software\Wow6432Node\GNU\GnuPG.
In the last search in PATH environment. On Mac OS X also check
/usr/loca/bin and /opt/local/bin.

svn path=/trunk/kdesupport/qca/; revision=1357590
2013-06-12 08:17:24 +00:00
David Faure
7d073db453 Finish port to Qt5: plugins. Patch by Ivan Romanov.
svn path=/trunk/kdesupport/qca/; revision=1347518
2013-04-02 12:41:12 +00: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
Justin Karneges
d349189b84 retrieve peer certificate chain. on mac, attempt to workaround openssl bugs
that apple introduced by validating the peer chain independent of ssl.

svn path=/trunk/kdesupport/qca/; revision=1311233
2012-08-17 01:05:56 +00:00
Justin Karneges
748af8203e fix compile when openssl doesn't support ssl2
svn path=/trunk/kdesupport/qca/; revision=1230301
2011-05-03 19:03:10 +00:00
Bernhard Rosenkraenzer
5618306b94 Support Botan 1.9.15 (AKA 1.10-rc1)
svn path=/trunk/kdesupport/qca/; revision=1225570
2011-03-21 17:20:41 +00:00
Justin Karneges
6f02652a99 fix bug in dsa signature generation when using IEEE_1363 format
svn path=/trunk/kdesupport/qca/; revision=1190163
2010-10-27 07:40:01 +00:00
Justin Karneges
54fe377ee0 support for rsa decryption with keys of other providers (e.g. pkcs11)
svn path=/trunk/kdesupport/qca/; revision=1179193
2010-09-24 19:42:02 +00:00
David Faure
e8059de1f6 Fix error with -Werror=return-type: not returning anything is undefined behavior here.
Please check what should be returned instead, though.
CCMAIL: bradh@frogmouth.net

svn path=/trunk/kdesupport/qca/; revision=1156630
2010-07-29 12:11:19 +00:00
Justin Karneges
835d757b71 return null event if waitForCondition times out
svn path=/trunk/kdesupport/qca/; revision=1127606
2010-05-17 05:02:18 +00:00
Justin Karneges
b6db383609 gpg keyring supports writing
svn path=/trunk/kdesupport/qca/; revision=1127605
2010-05-17 05:01:28 +00:00
Maciej Mrozowski
38a76161a3 Actually detect whether MD2 is avalable for OpenSSL plugin
CCMAIL: fundawang@linux.net.cn

svn path=/trunk/kdesupport/qca/; revision=1115936
2010-04-18 01:59:31 +00:00
Funda Wang
4c9afd56cc build modules rather than shared libs for really modules
svn path=/trunk/kdesupport/qca/; revision=1111903
2010-04-07 00:26:26 +00:00