Commit Graph

23 Commits (e51e14cdd13c0eb1175bba7056f098e719d1f28c)

Author SHA1 Message Date
Matías Fonzo f109868e22
Fix LibreSSL detection at tdeio/kssl/
Signed-off-by: Matías Fonzo <selk@dragora.org>
(cherry picked from commit aa9b9581a9)
5 years ago
François Andriot 64e65ab888
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>
(cherry picked from commit a6bbb9e7bc)
5 years ago
Michele Calgaro f3196cfa31
Fixed type in LIBRESSL usage. This relates to a comment made on issue #28.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8b66a5759a)
5 years ago
Slávek Banko 68f3283bf4
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>
(cherry picked from commit a2ad929640)
6 years ago
Chris ab1c971196
Fix remaining brandings in tdelibs and adopt to modern age.
Signed-off-by: Chris <xchrisx@uber.space>
(cherry picked from commit 0e071064b9)
6 years ago
Mavridis Philippe c5d222de8e
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>
(cherry picked from commit 86fea6f5c5)
6 years ago
Slávek Banko 33c3818ac5
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>
(cherry picked from commit 8a859540c3)
6 years ago
Slávek Banko 5649783834
Fix SSL initialization for OpenSSL >= 1.1.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 43609c8a21)
6 years ago
Slávek Banko f23de663bb KSSL: Set hostname in TLSext to enable SNI support
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 45cf7d13eb)
8 years ago
Slávek Banko f83e4b4741 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>
(cherry picked from commit adb9d9d2b0)
8 years ago
Slávek Banko b8802de2c0 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>
(cherry picked from commit e1861cb681)
8 years ago
Timothy Pearson 855198315f Fix crash on KSSLCertificate deallocation when a CRL is held in the KSSLCertificate object
(cherry picked from commit 62a597d752)
8 years ago
Timothy Pearson aeb2bd0fe6 Fix memory leak when deleting a KSSLCertificate that holds a CRL
(cherry picked from commit 9bf244dd97)
8 years ago
Timothy Pearson 294100108c Add initial CRL support to KSSLCertificate
(cherry picked from commit 5896a404bc)
8 years ago
Timothy Pearson 515aec93f3 Parse GENERALIZEDTIME ASN structures
This fixes certificate dates beyond year 2049.

(cherry picked from commit 07dbb3b5c9)
9 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