Commit Graph

160 Commits (7b5ea7b536c23f12ead68215e709cbfbc7b2ae1c)

Author SHA1 Message Date
François Andriot e3382b36bf
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
Slávek Banko 8a26a48f42
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
Slávek Banko cfa79f06e2
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 4e6b9128f7
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 c43ecb347b
Use common test for large files support.
Drop hardcoded definition -D_LARGEFILE64_SOURCE=1.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ebf0115af1)
6 years ago
OBATA Akio dcca1c0797
Change to always build and install KACL
It is used by others even if missing POSIX ACL support.

(cherry picked from commit 08b7645468)
6 years ago
Slávek Banko 86e5477b0e
Deleted blank line at the beginning of the file.
This prevented proper processing by extractrc.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0e892bc700)
6 years ago
Slávek Banko 22f2dd61d8 Fix security issue CVE-2017-6410
[taken from RedHat kdelibs patches]

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a3b86c2690)
7 years ago
Slávek Banko 92a29f00ef Fix bug reports link in about dialog
Update bug reports url to bugs.trinitydesktop.org
This resolves bug 2935

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit aa83c86cd3)
7 years ago
Michele Calgaro 8f7b2d1f6d Fix previous commit typo.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c18840c76f)
7 years ago
Michele Calgaro 9660b50111 Fixed service lookup in KOpenWithDlg. Default is now to lookup by
desktop path and not by name, to avoid returning the wrong service when
two or more .desktop files where using the same "Name" field.
This resolves bug 2734 (together with the changes made in applications/kcmautostart)

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bcdfbb95e9)
7 years ago
Slávek Banko d225bbf95e 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 c216dddd47 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
Michele Calgaro 50f90e9382 Fixed code for tdefiledialog which caused the problem explained in bug
2743. Using the new code, editing the path information in a
tdefiledialog and pressing the "open/save" button will behave exactly in
the same way as if ENTER was pressed after editing the path and before
pressing "open/save".

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 05bcfa76fc)
8 years ago
Slávek Banko da37928707 testing: Run tests that use DCOP in a temporary home
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit df203a23f4)
8 years ago
Slávek Banko 6af3551328 testing: run tdeio/kmimetypetest with temporary profile
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 4d3d8d8653)
8 years ago
Alexander Golubev 933dc8a3f8 tdeio: add tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit ed74769bfa)
8 years ago
Slávek Banko e90d3f57cd 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
Slávek Banko 9459c09772 Fix security issue CVE-2016-6232
Based on https://quickgit.kde.org/?p=karchive.git&a=commitdiff&h=0cb243f6

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 261a3b7a12)
8 years ago
Emanoil Kotsev c4838c3247 tdeio: fixed up certificate handling when certificate has expired. Also clean
up the code.

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f3fadb884d)
8 years ago
Emanoil Kotsev 35a651ae82 Fixed handling of certificate "permanent" acceptance. This relates to
bug 1287.
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>

Partially cleaned up and modified.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7406ed0563)
8 years ago
Timothy Pearson af445343bd Parse GENERALIZEDTIME ASN structures
This fixes certificate dates beyond year 2049.
(cherry picked from commit 07dbb3b5c9)
8 years ago
Timothy Pearson 6a8935327b Fix crash on KSSLCertificate deallocation when a CRL is held in the KSSLCertificate object
(cherry picked from commit 62a597d752)
8 years ago
Timothy Pearson f4726e5f8d Fix memory leak when deleting a KSSLCertificate that holds a CRL
(cherry picked from commit 9bf244dd97)
8 years ago
Timothy Pearson 56e5891a95 Add initial CRL support to KSSLCertificate
(cherry picked from commit 5896a404bc)
8 years ago
Alexander Golubev cc48df2a09 tdeio/kmimemagic: remove MAGIC_CONTINUE flag
This resolves bug 2713

The MAGIC_CONTINUE flag resulted in a malformed mimemagic responses
like "application/x-executable\012- application/octet-stream"
instead of just "application/x-executable".

This string being unparsed then caused the KMimeType::findByURL() to
fallback to application/octet-stream for nearly every mimetype.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit f54496a1f2)
8 years ago
Slávek Banko a8e88fd005 Compile MIME magic file
This partially resolves Bug 2217

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 026a0ccdcd)
8 years ago
Slávek Banko b334cc03d5 Fix mimetype detection using magic library
for mime types not contained in TDE settings
This resolves Bug 2392

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b0ac7d2879)
8 years ago
Timothy Pearson dab5e4adcb Properly identify desktop files
This resolves a rather major glitch with Device Links noted on the mailing list
(cherry picked from commit 6ddd04baca)
8 years ago
François Andriot 2ab53ffee4 Fix FTBFS with libmagic < 4.23
(cherry picked from commit 8f11758253)
8 years ago
Slávek Banko 3138567410 Fix FTBFS on missing magic_getpath
(cherry picked from commit 03a61295af)
8 years ago
Timothy Pearson 6a26452382 Do not use magic_version function if magic version support not available
This relates to Bug 656
(cherry picked from commit 58c3aed2bb)
8 years ago
Timothy Pearson 099aa9f362 Fix libmime database load once and for all
This relates to Bug 656
(cherry picked from commit e5f898219a)
8 years ago
Timothy Pearson 562d0b7642 Fix loading of additional mime magic files
This resolves Bug 656
(cherry picked from commit 62bfcbe478)
8 years ago
Timothy Pearson 602501b7b8 Use libmagic for mime type determination
This relates to Bug 656, Bug 661, and others
(cherry picked from commit 8066e87c6c)
8 years ago
Timothy Pearson a515deffb8 Remove unused KMimeMagic::mergeBufConfig method in preparation for converting to libmagic
This relates to Bug 656
(cherry picked from commit 6d268f3c55)
8 years ago
Timothy Pearson fc073bef59 Fix a number of build warnings
(cherry picked from commit e0b1bfb014)
8 years ago
Timothy Pearson d16c4300eb Fix compiler warnings
(cherry picked from commit 5e9959ef85)
8 years ago
Nikolaus Klepp c1136180cc Fix FTBFS on freebsd
This resolves Bug 2431

Signed-off-by: Nikolaus Klepp <office@klepp.biz>
(cherry picked from commit 3be9f300c9)
9 years ago
Slávek Banko a1d982adfc Improve ACL detection for CMake build
Fix hidden visibility in posixacladdons

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 6ebff39751)
9 years ago
Slávek Banko fb74d787f1 Add include directory for internal libltdl
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit dfd680030c)
9 years ago
Timothy Pearson 7e2cf4a9d5 Fix incorrect Download string in TDEFileSpeedBar
(cherry picked from commit acc29a93bb)
9 years ago
Timothy Pearson a6211be0ae Makes favorite URLs in TDE file open/save dialogs global (sared amongst all applications) by default
This commits the following patch from Bug 1499:
 tdelibs: fix kurlbar global
(cherry picked from commit c359057caa)
9 years ago
Timothy Pearson 1bdb69cbcb Push the following patches to GIT from Bug 1499:
tdelibs: disable kfiledialogbox OK button if user has no permission on file
 tdelibs: fix https loop
 tdelibs: fix groups in kdialogpropertiesdialog
 tdelibs: avoid assertion in tdeio karchive
(cherry picked from commit 9cb7d73182)
9 years ago
Thomas McGuire 1af590f88a Support writing empty directories to ZIP files.
(cherry picked from commit ddbe23e90d)
9 years ago
François Andriot 6cbb86f9ae Disable environment-based completion in kurlcompletion on openbsd
(cherry picked from commit 78a66b11dd)
9 years ago
François Andriot e703480d0d Fix FTBFS because undefined __progname in tdeio_connection
(cherry picked from commit 9c7a8637ed)
9 years ago
Timothy Pearson e25c6429ea Add mimeTypePtrFast method to KFileItem
This relates to Bug 699
Clean up a couple of minor build warnings
Classify usbmisc devices
(cherry picked from commit 54578ce023)
9 years ago
Timothy Pearson 52109a5ac7 Fix accidental regression introduced in prior commit
(cherry picked from commit e1f2a0bb29)
9 years ago
Timothy Pearson f52fdb1b4a Add fast mimetype accessor for use by Konqueror when checking for media device icons
This relates to Bug 699
(cherry picked from commit a21cb20628)
9 years ago