aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src/file_sender.vala
AgeCommit message (Collapse)Author
2024-11-15Fix and improve stateless file-sharingfiaxh
2024-11-14Implement XEP-0447: Stateless file sharingPatiga
2024-06-29Allow self-signed .onion file transfer certs (#1149)Matthew Fennell
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.
2023-03-22Bind soup session lifetime to File provider/sender lifetimeMarvin W
Required since libsoup 3.4. Fixes #1395
2022-11-03Automatically select appropriate libsoup versionMarvin W
2022-04-09Prepare http-files plugin for libsoup-3 supportMarvin W
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
2022-03-30Allow cancellation of file transfersMarvin W
2021-12-09Remove ContentFiltersfiaxh
fixes #1129 #573
2021-03-21Add RTP implementation as pluginMarvin W
2020-07-16Only query entity caps when we need themfiaxh
2020-04-22Add file upload previewfiaxh
fixes #756
2019-11-19Add support for HTTP Upload headersWiktor Kwapisiewicz
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
2019-11-04Fix reporting failed HTTP uploadWiktor Kwapisiewicz
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".
2019-09-16Add JET supportMarvin W
2019-08-21Fix specified size for encrypted file uploadsfiaxh
2019-07-18Refactor file receive/send interfaces and UIfiaxh