aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src/file_sender.vala
Commit message (Collapse)AuthorAgeFilesLines
* Allow self-signed .onion file transfer certs (#1149)Matthew Fennell2024-06-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Most Certificate Authorities don't support issuing X.509 certificates for onion sites. However, it can still be useful to provide a certificate over Tor in some circumstances, for instance to tie your alphanumeric Tor address to your site's main identity. Therefore, many Tor services provide self-signed certificates. This is OK, since the onion service itself guarantees that you are connecting to the entity you think you are. Dino already allows self-signed certs when communicating over Tor (see 81a5505). However, the same exception does not exist yet for HTTP uploads and downloads - causing these to fail over Tor. Therefore, in this commit, we add the same exception for uploads/downloads, by passing the host of the upload/download urls to the already existing invalid certificate connection handler. Note that this handler only allows certificates with type TlsCertificateFlags.UNKNOWN_CA. This means the certificate of your server must also include the onion http upload and download URLs in its certificate - otherwise, the file transfer will fail with TlsCertificateFlags.BAD_IDENTITY.
* Bind soup session lifetime to File provider/sender lifetimeMarvin W2023-03-221-2/+3
| | | | Required since libsoup 3.4. Fixes #1395
* Automatically select appropriate libsoup versionMarvin W2022-11-031-3/+3
|
* Prepare http-files plugin for libsoup-3 supportMarvin W2022-04-091-12/+22
| | | | | Note: ice plugin still depends on libsoup-2.4 and one can't have both in the same process, so this remains disabled by default
* Allow cancellation of file transfersMarvin W2022-03-301-1/+2
|
* Remove ContentFiltersfiaxh2021-12-091-11/+3
| | | | fixes #1129 #573
* Add RTP implementation as pluginMarvin W2021-03-211-6/+0
|
* Only query entity caps when we need themfiaxh2020-07-161-5/+5
|
* Add file upload previewfiaxh2020-04-221-0/+8
| | | | fixes #756
* Add support for HTTP Upload headersWiktor Kwapisiewicz2019-11-191-0/+4
| | | | | | | | | | | Some services use Authorization header [0] to pass upload credential data. This avoids the token being exposed in server logs and is allowed by XEP-0363 since version 0.5.0. This change adds support for headers allowed in XEP-0363: Authorization, Expires and Cookie. [0]: https://xmpp.org/extensions/xep-0363.html#request
* Fix reporting failed HTTP uploadWiktor Kwapisiewicz2019-11-041-1/+1
| | | | | | Status code can't be less than 200 and greater than or equal 300 at the same time. Using || instead of && marks all uploads that do not have 2xx status code as "failed".
* Add JET supportMarvin W2019-09-161-16/+23
|
* Fix specified size for encrypted file uploadsfiaxh2019-08-211-2/+2
|
* Refactor file receive/send interfaces and UIfiaxh2019-07-181-0/+126