Commit Graph

173 Commits (efae38628bff2b77096db677c4feaacde1dc5438)

Author SHA1 Message Date
Slávek Banko efae38628b
tests: Wait for the dcop server to be ready.
Use a separate ICEAUTHORITY for tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 19f44e5ff3)
4 years ago
OBATA Akio b92175e2a3
Improve progname detection portability
`getprogname()` of FreeBSD is based on NetBSD's one, no reason to
prevent using it on NetBSD.
glibc also has own special variable for progname.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 965a808b91)
4 years ago
Slávek Banko d37bb843d1
Use private linking for exported CMake targets.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 158b6e1152)
4 years ago
Slávek Banko d336392f8f
For templates from CMake, use the TDE CMAKE TEMPLATES variable.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 080c061b15)
4 years ago
Slávek Banko b2ff598b34
Drop explicit dependencies on dcopidl and dcopidl2cpp,
because thanks to the replacement of KDE3 CMake macros
with TDE macros, this is no longer needed.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit c2b90055a5)
4 years ago
Michele Calgaro 58b490adcc
Security: remove support for $(...) in KRun which could have allowed
execution of malicious code. This is similar to issue #45 for .desktop
files.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8b8f5064f7)
4 years ago
Michele Calgaro e58c536dd1
Removed beagle related code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit e5256a1bd6)
4 years ago
Slávek Banko fbd64ec386
Improve folder icons on the speedbar.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 017a50624b)
4 years ago
Michele Calgaro 05dbf5c0b1
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit aa98dbfe80)
4 years ago
Michele Calgaro b3a875f92e
Make sure XDG folders are created prior to their usage.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit de79e754fa)
4 years ago
Michele Calgaro 54800d9de6
Improved support for XDG folders without requiring xdg-user-dirs to be installed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 394c9f5c0e)
4 years ago
Matías Fonzo d5b27c1f51
Redirect some headers noticed by the compiler
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
/usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h>

Note: <sys/signal.h> has been removed from the tdeio/tdeio/connection.cpp source - it was already declared.

Signed-off-by: Matías Fonzo <selk@dragora.org>
(cherry picked from commit c2adce2e13)
4 years ago
Matías Fonzo 7fe5760c2a
Fix LibreSSL detection at tdeio/kssl/
Signed-off-by: Matías Fonzo <selk@dragora.org>
(cherry picked from commit aa9b9581a9)
4 years ago
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