aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src/file_provider.vala
Commit message (Collapse)AuthorAgeFilesLines
* Allow self-signed .onion file transfer certs (#1149)Matthew Fennell2024-06-291-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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-4/+3
| | | | Required since libsoup 3.4. Fixes #1395
* Consider stream readable when EOS is reached.Marvin W2023-03-021-1/+1
| | | | Fixes #1373
* HTTP: Make LimitInputStream pollable for better async compatibilityMarvin W2022-11-041-1/+20
| | | | Fixes #1307
* Automatically select appropriate libsoup versionMarvin W2022-11-031-2/+2
|
* Prepare http-files plugin for libsoup-3 supportMarvin W2022-04-091-20/+27
| | | | | 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-5/+44
|
* Remove ContentFiltersfiaxh2021-12-091-9/+4
| | | | fixes #1129 #573
* Don't remove characters after '#' in filenamefiaxh2021-06-071-1/+2
|
* Use WeakMap for message cachingfiaxh2020-11-141-2/+2
|
* Fix initial file encryption displayingfiaxh2020-09-071-0/+4
| | | | fixes #831
* Fix file receival in groupchat pmsxMarvin W2020-01-091-2/+2
|
* Don't allow newlines in URLs, also clean up on http file transfer detectionMarvin W2019-12-261-11/+7
|
* Fix specified size for encrypted file uploadsfiaxh2019-08-211-6/+10
|
* Refactor file receive/send interfaces and UIfiaxh2019-07-181-56/+78
|
* Fix a couple of typos and double importshrxi2019-06-011-1/+1
|
* Remove Message.stanza fieldfiaxh2019-05-261-1/+1
|
* Use regex literals, fixes some compiler warningsfiaxh2019-03-141-1/+1
|
* Make file read/write asyncfiaxh2019-02-141-2/+2
|
* Check FileTransfer's mime_type for null (unknown) when handeling itfiaxh2018-12-311-1/+0
| | | | fixes #479
* Check content_length for null before parsing in http HEAD message responsefiaxh2018-11-291-1/+3
| | | | fixes #468
* Fix aesgcm http file up/download bugsfiaxh2018-11-271-5/+7
|
* Implement aesgcm encrypted file uploadfiaxh2018-11-271-5/+0
|
* FileProvider for aesgcm linksfiaxh2018-11-271-2/+1
| | | | Co-authored-by: Thibaut Girka <thib@sitedethib.com>
* Restructure (http) file provider flow: Separate download&get_info, download ↵fiaxh2018-11-271-62/+78
| | | | in provider, move XmppStreamModule into xmpp-vala
* Add `hidden` column to content_item tablefiaxh2018-08-311-2/+8
|
* sort file transfers into correct conversationbobufa2018-08-131-1/+1
|
* Small fixesfiaxh2018-01-301-4/+2
|
* Only display transferred images, display file names, open in system viewer, ↵fiaxh2018-01-281-11/+1
| | | | include and use pgp embedded file names
* Pipeline for incoming messages in libdinofiaxh2018-01-281-12/+38
|
* Move Jid class to xmpp-vala, partially refactor namespaceMarvin W2018-01-281-0/+1
|
* Restore window state (size, maximized, position)fiaxh2017-12-311-22/+24
|
* Fallback display for all file typesfiaxh2017-12-131-6/+19
|
* http-files: async file downloadfiaxh2017-11-271-29/+32
|
* Disconnect stanza listeners from pipelinefiaxh2017-11-221-1/+1
|
* Fix warningsfiaxh2017-10-311-2/+6
|
* PGP encrypted file transfersfiaxh2017-10-221-1/+1
|
* Handle file uploading in libdino & main, have http upload as providerfiaxh2017-10-211-35/+1
|
* http-files: max-file-size handlingfiaxh2017-09-261-4/+5
|
* Download & inline display imagesfiaxh2017-08-311-0/+106