Commit Graph

44 Commits (r14.1.3)

Author SHA1 Message Date
Michele Calgaro 417373531b
Rename kdemacros.* files to tdemacros.*
A dummy 'kdemacros.h' has been added to allow TDE to built till renaming is carried out across the whole code base. It will then be removed.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1307964495)
8 months ago
Michele Calgaro f23f0ef919
Replace KDE_DEPRECATED with TDE_DEPRECATED
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 43e38f2c0a)
9 months ago
Michele Calgaro 62949e0a61
Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bba3128085)
10 months ago
Michele Calgaro 5e51787f9a
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 03aa7238b3)
1 year ago
Michele Calgaro 7f03918f8d
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ba3b5b77e1)
1 year ago
Michele Calgaro 303b644501 Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c8ece3630d)
1 year ago
Michele Calgaro 04d3532360
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4c0dae60b2)
1 year ago
Michele Calgaro 55cd4e5c56
Replace Q_OBJECT with TQ_OBJECT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8eb500c4e8)
2 years ago
Michele Calgaro 7073100361
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 36c049e135)
2 years ago
Michele Calgaro 605ad06ae3
Fix FTBFS caused by previous commit
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9440fb5585)
2 years ago
Denis Kozadaev e02f27b042
SunOS spesific SSL pathes
Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit ee09921685)
2 years ago
Slávek Banko cb87252f7d
KSSL: Add names for OpenSSL 3.x libraries to SSL libraries search.
Use OPENSSL_SHLIB_VERSION for default libraries version.

This relates to issue #176.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
3 years ago
Michele Calgaro 682b8acae4
KSSL: fixed detection of correct 'SSL_get_peer_certificate' method. This resolves incompatibility with openSSL 3.0.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
3 years ago
Mavridis Philippe 49ea1c8db2
KSSL: Rebuilt local certificates bundle
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 3b873f0258
KSSL: Added ISRG root certs for LetsEncrypt
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Michele Calgaro 4f99f868f0
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 years ago
Michele Calgaro ed8e30bc6d
Removed code formatting modelines.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 years ago
Matías Fonzo aa9b9581a9
Fix LibreSSL detection at tdeio/kssl/
Signed-off-by: Matías Fonzo <selk@dragora.org>
5 years ago
François Andriot a6bbb9e7bc
Fix missing return values in kopenssl.
Signed-off-by: François Andriot <francois.andriot@free.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Michele Calgaro 8b66a5759a
Fixed type in LIBRESSL usage. This relates to a comment made on issue #28.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Slávek Banko a2ad929640
Fix SSL initialization for OpenSSL >= 1.1.
The first argument of the OPENSSL_init_ssl and OPENSSL_init_crypto
functions must be a 64-bit int, not a 32-bit int, as this caused
unpredictable OpenSSL behavior.

This resolves bug 3024.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Chris 0e071064b9 Fix remaining brandings in tdelibs and adopt to modern age.
Signed-off-by: Chris <xchrisx@uber.space>
6 years ago
Mavridis Philippe 86fea6f5c5 Added some checks in KSSL (in TDEIO) to correctly recognize LibreSSL (which is a fork of OpenSSL 1.0.1b)
This resolves issue #28.

Signed-off-by: Mavridis Philippe <mfilippos@yandex.ru>
6 years ago
Slávek Banko 8a859540c3
Use system libdir when searching for dynamically loaded libraries.
This prevents finding an incorrect architecture on multi-arch systems.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 43609c8a21
Fix SSL initialization for OpenSSL >= 1.1.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Michele Calgaro 6ec26d859b
KPasswordEdit::password() now returns a TQString instead of a const char *. This relates to bug 2961.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Michele Calgaro 2e0398f755
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Slávek Banko 45cf7d13eb KSSL: Set hostname in TLSext to enable SNI support
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
8 years ago
Slávek Banko adb9d9d2b0 KSSL: Use TLS_client_method instead of TLSv1_client_method
This enables TLS protocols newer than v1.0
This resolves bug 2764

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
8 years ago
Slávek Banko e1861cb681 Added support for OpenSSL 1.1
Some KOpenSSLProxy methods have been renamed to be consistent
with OpenSSL 1.1 API names and to prevent hidden API changes.
To ensure API / ABI compatibility, the original methods are
still included but have been marked as deprecated.

+ SSLv23_client_method => TLS_client_method
+ X509_STORE_CTX_set_chain => X509_STORE_CTX_set0_untrusted
+ sk_dup => OPENSSL_sk_dup
+ sk_free => OPENSSL_sk_free
+ sk_new => OPENSSL_sk_new
+ sk_num => OPENSSL_sk_num
+ sk_pop => OPENSSL_sk_pop
+ sk_push => OPENSSL_sk_push
+ sk_value => OPENSSL_sk_value

Additional methods have been added to KOpenSSLProxy to support
the new OpenSSL 1.1 API functions that provide access to the
(now) opaque SSL structures. Compatibility with OpenSSL < 1.1
is handled internally in KOpenSSLProxy.

+ BIO_get_data
+ DSA_get0_key
+ DSA_get0_pqg
+ EVP_PKEY_base_id
+ EVP_PKEY_get0_DSA
+ EVP_PKEY_get0_RSA
+ RSA_get0_key
+ X509_CRL_get0_lastUpdate
+ X509_CRL_get0_nextUpdate
+ X509_OBJECT_get0_X509
+ X509_OBJECT_get_type
+ X509_STORE_CTX_get_current_cert
+ X509_STORE_CTX_get_error
+ X509_STORE_CTX_get_error_depth
+ X509_STORE_CTX_set_error
+ X509_STORE_get0_objects
+ X509_STORE_set_verify_cb
+ X509_get0_signature
+ X509_getm_notAfter
+ X509_getm_notBefore
+ X509_subject_name_cmp
+ _SSL_session_reused
+ _SSL_set_options

Method "KSSL::setSession" has been renamed to "KSSL::takeSession"
and its functionality has changed: the session is now transferred
from the argument object to the invoked object. Since it is only
used internally in TDE and the functionality is different, the
method with the previous name has not been preserved.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 years ago
Timothy Pearson 07dbb3b5c9 Parse GENERALIZEDTIME ASN structures
This fixes certificate dates beyond year 2049.
9 years ago
Timothy Pearson 62a597d752 Fix crash on KSSLCertificate deallocation when a CRL is held in the KSSLCertificate object 9 years ago
Timothy Pearson 9bf244dd97 Fix memory leak when deleting a KSSLCertificate that holds a CRL 9 years ago
Timothy Pearson 5896a404bc Add initial CRL support to KSSLCertificate 10 years ago
Timothy Pearson c51a15f04a Fix unused variable compiler warnings 10 years ago
Timothy Pearson 59e5235822 Fix compiler warning regarding missing braces 10 years ago
Timothy Pearson e757d3d6ae Check if SSL symbols exist before attempting to load them
This relates to Bug 1655
11 years ago
Timothy Pearson bab94d8378 Rename KWallet to TDEWallet 12 years ago
Francois Andriot a67a48107f Fix security issue when displaying certificate informations (CVE-2011-3365) 12 years ago
Timothy Pearson ed99a30644 Rename additional header files to avoid conflicts with KDE4 12 years ago
Timothy Pearson 8bd62a3b0d Rename common header files for consistency with class renaming 12 years ago
Timothy Pearson 59d153016b Rename KLocale to enhance compatibility with KDE4 12 years ago
Timothy Pearson d3afa6baf9 Rename KStandard for enhanced compatibility with KDE4 12 years ago
Timothy Pearson 5159cd2beb Rename a number of libraries and executables to avoid conflicts with KDE4 12 years ago