summaryrefslogtreecommitdiffstats
path: root/kio
Commit message (Collapse)AuthorAgeFilesLines
* Improve progname detection portabilityOBATA Akio2021-02-031-1/+3
| | | | | | | | | `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 965a808b91b6542208b24af18e55193e5f929c37)
* Use private linking for exported CMake targets.Slávek Banko2021-02-031-1/+2
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 158b6e1152413e4fa973b70b7469bb1f256a1f38)
* For templates from CMake, use the TDE CMAKE TEMPLATES variable.Slávek Banko2021-02-031-1/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 080c061b15cfcb11e26a2ede1c8082afb0c5d329)
* Drop explicit dependencies on dcopidl and dcopidl2cpp,Slávek Banko2021-02-037-7/+0
| | | | | | | | 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 c2b90055a581e9fb95a281fab53b6c56a96a4f2d)
* Security: remove support for $(...) in KRun which could have allowedMichele Calgaro2021-02-031-20/+1
| | | | | | | | 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 8b8f5064f7094a713a16ade3bf37d8efec601949)
* Removed beagle related code.Michele Calgaro2021-02-033-16/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit e5256a1bd6b1ee6eb909041c7fecc01d3d6d4be6)
* Improve folder icons on the speedbar.Slávek Banko2021-02-031-4/+4
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 017a50624b40f1d24a3a3ab98ee622d906531e12)
* Removed explicit usage of the 'register' keyword.Michele Calgaro2021-02-032-29/+29
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit aa98dbfe80580169f3df12489a77e8b904a1d9b9)
* Make sure XDG folders are created prior to their usage.Michele Calgaro2021-02-031-27/+17
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit de79e754fa8118d34ea804d6b4fb7056b65487fd)
* Improved support for XDG folders without requiring xdg-user-dirs to be ↵Michele Calgaro2021-02-032-70/+12
| | | | | | | installed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 394c9f5c0e1b464aa8bc22bd65c5268acd43994d)
* Redirect some headers noticed by the compilerMatías Fonzo2021-02-031-1/+0
| | | | | | | | | | | | /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 c2adce2e133c167567df8607a32a420a9825f695)
* Fix LibreSSL detection at tdeio/kssl/Matías Fonzo2021-02-031-4/+4
| | | | | Signed-off-by: Matías Fonzo <selk@dragora.org> (cherry picked from commit aa9b9581a97daa50855d815b6724b9112448c96f)
* Fix missing return values in kopenssl.François Andriot2019-12-041-0/+7
| | | | | | Signed-off-by: François Andriot <francois.andriot@free.fr> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit a6bbb9e7bc21382b504c8c6fe408a766a3890bb6)
* Fix SSL initialization for OpenSSL >= 1.1.Slávek Banko2019-09-041-2/+2
| | | | | | | | | | | 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 a2ad929640f62ee1f854564366ce1cd8547de455)
* Use system libdir when searching for dynamically loaded libraries.Slávek Banko2019-02-271-33/+8
| | | | | | | This prevents finding an incorrect architecture on multi-arch systems. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 8a859540c3cb306844288144a06028dc302408d6)
* Fix SSL initialization for OpenSSL >= 1.1.Slávek Banko2019-02-211-2/+24
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 43609c8a21144b56a53d53757639fc6c6298c10d)
* Use common test for large files support.Slávek Banko2019-01-282-8/+0
| | | | | | | Drop hardcoded definition -D_LARGEFILE64_SOURCE=1. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit ebf0115af1c52612e02fd8908b4240501bd34c60)
* Change to always build and install KACLOBATA Akio2019-01-271-7/+3
| | | | | | It is used by others even if missing POSIX ACL support. (cherry picked from commit 08b76454681e565ad5e0fe55f3e76380caa39aca)
* Deleted blank line at the beginning of the file.Slávek Banko2018-12-021-1/+0
| | | | | | | This prevented proper processing by extractrc. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 0e892bc70070640f68a09bb4897a7c0fd7bfe929)
* Fix security issue CVE-2017-6410Slávek Banko2018-07-261-2/+10
| | | | | | | [taken from RedHat kdelibs patches] Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit a3b86c26903ade446ac57afc8c3f8a9c1bd66390)
* Fix bug reports link in about dialogSlávek Banko2018-06-305-12/+12
| | | | | | | | 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 aa83c86cd30e77bad7fdb2b047ce256a24c883b5)
* Fix previous commit typo.Michele Calgaro2018-04-301-1/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c18840c76f3cadeff5f1279f1ea8c1920194ea6e)
* Fixed service lookup in KOpenWithDlg. Default is now to lookup byMichele Calgaro2018-04-303-30/+41
| | | | | | | | | 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 bcdfbb95e94db26bf984443ce583d919a330058c)
* KSSL: Set hostname in TLSext to enable SNI supportSlávek Banko2017-07-221-0/+6
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 45cf7d13eb68be0fd469fd49275c000a2c7bcc2f)
* KSSL: Use TLS_client_method instead of TLSv1_client_methodSlávek Banko2017-07-221-7/+9
| | | | | | | | 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 adb9d9d2b0bfbb0f856673e663aad7c4a63020eb)
* Fixed code for tdefiledialog which caused the problem explained in bugMichele Calgaro2017-07-221-3/+9
| | | | | | | | | | 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 05bcfa76fc9bd5dcf7267f2b5a26436566a9cf82)
* testing: Run tests that use DCOP in a temporary homeSlávek Banko2017-07-221-6/+6
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit df203a23f4d96fae5fbc61bb180c4db8f63e63ae)
* testing: run tdeio/kmimetypetest with temporary profileSlávek Banko2017-07-222-1/+33
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 4d3d8d865359061916b21e9ab46097e2e4c2fd2c)
* tdeio: add testsAlexander Golubev2017-07-2230-50/+143
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit ed74769bfaae171809c0bc1a10a8ba0f6ff8895f)
* Added support for OpenSSL 1.1Slávek Banko2017-07-2213-365/+978
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 e1861cb6811f7bac405ece204407ca46c000a453)
* Fix security issue CVE-2016-6232Slávek Banko2017-07-221-2/+12
| | | | | | | 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 261a3b7a126b7a1d28e263085b85bf1905eb4c19)
* tdeio: fixed up certificate handling when certificate has expired. Also cleanEmanoil Kotsev2017-07-221-96/+18
| | | | | | | | up the code. Signed-off-by: Emanoil Kotsev <deloptes@gmail.com> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit f3fadb884d08b74d5796f7d1b6ad2c2a2316c0f4)
* Fixed handling of certificate "permanent" acceptance. This relates toEmanoil Kotsev2017-07-221-10/+27
| | | | | | | | | 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 7406ed0563952d1ee433e02e75fb44a5d0d0a81d)
* Parse GENERALIZEDTIME ASN structuresTimothy Pearson2017-07-221-12/+21
| | | | | This fixes certificate dates beyond year 2049. (cherry picked from commit 07dbb3b5c92ed22f71123eb84806d55f9962c60b)
* Fix crash on KSSLCertificate deallocation when a CRL is held in the ↵Timothy Pearson2017-07-221-0/+2
| | | | | | KSSLCertificate object (cherry picked from commit 62a597d75224844be9a98952a586fc5c0406561e)
* Fix memory leak when deleting a KSSLCertificate that holds a CRLTimothy Pearson2017-07-223-1/+17
| | | | (cherry picked from commit 9bf244dd97e89bf47dd70fe47a4f00a3f372f875)
* Add initial CRL support to KSSLCertificateTimothy Pearson2017-07-224-4/+88
| | | | (cherry picked from commit 5896a404bcc63085cf0a50d232d2d631a5107228)
* tdeio/kmimemagic: remove MAGIC_CONTINUE flagAlexander Golubev2017-07-221-2/+2
| | | | | | | | | | | | | | 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 f54496a1f2d99bea12af3db999a53515109f99a3)
* Compile MIME magic fileSlávek Banko2017-07-222-2/+17
| | | | | | | This partially resolves Bug 2217 Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 026a0ccdcdd054f227682f7e37dceef68173c6f9)
* Fix mimetype detection using magic librarySlávek Banko2017-07-221-2/+6
| | | | | | | | 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 b0ac7d287922e883a2e571222089b680adfe46c6)
* Properly identify desktop filesTimothy Pearson2017-07-223-0/+23
| | | | | This resolves a rather major glitch with Device Links noted on the mailing list (cherry picked from commit 6ddd04bacafe12003b229afc036dc4674df48d5f)
* Fix FTBFS with libmagic < 4.23François Andriot2017-07-221-0/+4
| | | | (cherry picked from commit 8f117582531853100b5e0e5ce6a654398270c6c4)
* Fix FTBFS on missing magic_getpathSlávek Banko2017-07-223-1/+28
| | | | (cherry picked from commit 03a61295af97983a2313df9717653a466c99ef03)
* Do not use magic_version function if magic version support not availableTimothy Pearson2017-07-221-0/+4
| | | | | This relates to Bug 656 (cherry picked from commit 58c3aed2bb340467aa9734a9141ebe1d89e4074b)
* Fix libmime database load once and for allTimothy Pearson2017-07-221-13/+31
| | | | | This relates to Bug 656 (cherry picked from commit e5f898219af927c9bac3aa9b0c9e9473a52dde15)
* Fix loading of additional mime magic filesTimothy Pearson2017-07-221-7/+2
| | | | | This resolves Bug 656 (cherry picked from commit 62bfcbe4780e5b08aee6a16895f5e508f0646bd2)
* Use libmagic for mime type determinationTimothy Pearson2017-07-226-3170/+167
| | | | | This relates to Bug 656, Bug 661, and others (cherry picked from commit 8066e87c6ca6eb12af5c427b5fb73ccfe6c97d04)
* Remove unused KMimeMagic::mergeBufConfig method in preparation for ↵Timothy Pearson2017-07-222-25/+0
| | | | | | | converting to libmagic This relates to Bug 656 (cherry picked from commit 6d268f3c559ac6351666de4a362a0536ecc7c78a)
* Fix a number of build warningsTimothy Pearson2017-07-227-19/+36
| | | | (cherry picked from commit e0b1bfb0140e1d484f71683e820731abdd0779d5)
* Fix compiler warningsTimothy Pearson2017-07-221-3/+5
| | | | (cherry picked from commit 5e9959ef854ca8d353b91e9d8305f0fc5e117712)