about summary refs log tree commit diff stats
path: root/src/tools/http_upload.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup: gchar as gchar instead of charJohn Hernandez2023-05-041-4/+2
| | | | | | | | Use gchar instead of char in most of the cases where gchar is intended. Reason: improve compatibility and stability. Issue #1819 Minor refactoring.
* Fix a segfault when uploading or downloading filesMaxi Wuttke2022-04-021-1/+1
| | | | The variable `ccount->tls_policy` was not null-tested before `strcmp`.
* apply `tls.policy` to cURL callsSteffen Jaeckel2022-03-221-0/+7
| | | | | | | | | | | | In case the user decides to ignore the validity-state of certificates we also have to configure libcurl accordingly. `tls.policy` can be set via ``` /account set <account> tls trust ``` Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* add profanity-specific CAfileSteffen Jaeckel2022-03-221-0/+6
| | | | | | | | The profanity-internal mechanism to allow connecting to a server isn't easily portable to cURL. Therefor introduce a profanity-specific CAfile which is managed individually and will be configured in libcurl calls. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* http upload: use correct content typeMichael Vetter2021-06-021-1/+1
| | | | | | | | | | This bug was introduced in 1ec606540eb0f474f3d968d3566a7c56d778a367 when `g_strdup_printf` was used instead of `asprintf`. Problem discoverd by raspeguy. Mistake discovered by optmzr and Martin. Thanks to everybody involved!
* Get rid of asprintf and _GNU_SOURCE defineMichael Vetter2021-03-301-42/+45
| | | | | | | _GNU_SOURCE was even in some files where it was not needed at all (http*). Let's replace asprintf() with g_strdup_printf().
* Upload: Fix unused returnThorben Günther2021-03-111-4/+9
|
* Update to the newest version of XEP 0363 (HTTP Upload)Maximilian Wuttke2021-03-111-0/+27
| | | | | | | | | | | | | Main changes: 1. Attributes instead of tags 2. Read the optional <header> tags and send them in the HTTP PUT header: * Authorization * Cookie * Expires Co-authored-by: Martin Dosch <martin@mdosch.de>
* Run make format on rebaseWilliam Wennerström2020-11-161-14/+17
|
* Add http_download toolWilliam Wennerström2020-11-161-1/+1
|
* Add guards for OMEMOWilliam Wennerström2020-11-161-1/+3
|
* Move setup for AESGCM to omemo/cryptoWilliam Wennerström2020-11-161-0/+2
|
* Reformat HTTP get URL to AESGCM schemeWilliam Wennerström2020-11-161-26/+63
|
* Refactor to use file streamWilliam Wennerström2020-11-161-21/+14
|
* Initial /sendfile OMEMO encryptionWilliam Wennerström2020-11-161-10/+10
|
* Apply coding styleMichael Vetter2020-07-071-46/+46
|
* Revert "Apply coding style"Michael Vetter2020-07-071-54/+54
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-54/+54
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-1/+1
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Don't expose upload_processesMichael Vetter2020-04-171-0/+21
| | | | | | | | That's actually not good practise. Realized this when checking for multiple symbol definition in issue mentioned below. Regards https://github.com/profanity-im/profanity/issues/1314
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Allow installing plugins from directoryJames Booth2017-02-051-7/+1
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Remove unused functionJames Booth2016-11-241-1/+0
|
* Add win_print_http_uploadJames Booth2016-10-111-1/+1
|
* Add config.h to http_upload.cJames Booth2016-10-021-0/+2
|
* Fix indentation in http_upload.cDominik Heidler2016-07-251-1/+1
|
* Tidy headersJames Booth2016-07-241-3/+3
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Merge remote-tracking branch 'asdil12/xep_0363_http_file_upload'James Booth2016-04-261-6/+7
|
* Implement XEP-0363: HTTP File UploadDominik Heidler2016-04-261-0/+337