Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Spawn external programs asynchronously | Marouane L | 2022-10-12 | 2 | -2/+2 |
| | | | | | | | | Drawback is that we can't check the exitcode anymore. But we were unsure why/when we need this, see: https://github.com/profanity-im/profanity/pull/1760/files#r980868708 Fixes https://github.com/profanity-im/profanity/issues/1759 | ||||
* | Tell user where the downloaded file is stored | Steffen Jaeckel | 2022-09-07 | 1 | -2/+2 |
| | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de> | ||||
* | Include common.h and xmpp.h in editor.c | Michael Vetter | 2022-06-28 | 1 | -0/+2 |
| | | | | That was pulled in through log.h | ||||
* | Include xmpp.h in bookmark_ignore.c | Michael Vetter | 2022-06-28 | 1 | -0/+2 |
| | | | | That was pulled in through log.h | ||||
* | Improve cmd argument parser | MarcoPolo-PasTonMolo | 2022-06-16 | 1 | -3/+12 |
| | | | | | | | | | "" used to become " now it just becomes an empty argument. Also if quotes appeared after a token started then if the number of quotes in the token is n the resulting one would be a token with the n last characters cut off, now it's fixed. Fixes https://github.com/profanity-im/profanity/issues/497 | ||||
* | Update copyright year | Michael Vetter | 2022-05-09 | 4 | -4/+4 |
| | |||||
* | Fix a segfault when uploading or downloading files | Maxi Wuttke | 2022-04-02 | 2 | -2/+2 |
| | | | | The variable `ccount->tls_policy` was not null-tested before `strcmp`. | ||||
* | Fix crash on /editor | MarcoPolo-PasTonMolo | 2022-03-24 | 1 | -1/+5 |
| | |||||
* | apply `tls.policy` to cURL calls | Steffen Jaeckel | 2022-03-22 | 2 | -0/+14 |
| | | | | | | | | | | | | 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 CAfile | Steffen Jaeckel | 2022-03-22 | 2 | -0/+12 |
| | | | | | | | | 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> | ||||
* | re-factor `get_message_from_editor()` | Steffen Jaeckel | 2022-03-14 | 1 | -62/+50 |
| | | | | | | | * use GLib functions to write&read compose file * trim trailing new-line characters from compose file Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de> | ||||
* | prevent segfault | Steffen Jaeckel | 2022-03-13 | 1 | -0/+3 |
| | | | | | | | In case we're not connected yet and press Alt+c a segfault occurred since `conn.xmpp_conn` is dereferenced while it's still `NULL`. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de> | ||||
* | Add stat.h to editor | Michael Vetter | 2022-03-04 | 1 | -0/+1 |
| | | | | | | Fix on openbsd: `src/tools/editor.c:55:36: error: 'S_IRWXU' undeclared (first use in this function)` | ||||
* | Include errno header in editor.c | Michael Vetter | 2022-03-04 | 1 | -1/+2 |
| | |||||
* | Move get_message_from_editor to appropriate file and change its keybinding | MarcoPolo-PasTonMolo | 2022-03-03 | 2 | -0/+176 |
| | |||||
* | auto-format | Steffen Jaeckel | 2022-02-01 | 1 | -1/+1 |
| | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de> | ||||
* | Format code correctly | Michael Vetter | 2021-10-05 | 1 | -1/+1 |
| | |||||
* | Fix segfault when aesgcm url isn't the expected size | Michael Vetter | 2021-06-30 | 1 | -0/+1 |
| | | | | | | | | Fixes the bug mentioned in https://github.com/profanity-im/profanity/issues/1478#issuecomment-794161606 The rest of https://github.com/profanity-im/profanity/issues/1478 I can't reproduce. Seems to work fine. | ||||
* | http upload: use correct content type | Michael Vetter | 2021-06-02 | 1 | -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 define | Michael Vetter | 2021-03-30 | 5 | -51/+49 |
| | | | | | | | _GNU_SOURCE was even in some files where it was not needed at all (http*). Let's replace asprintf() with g_strdup_printf(). | ||||
* | Add config.h in files were it was missing | Michael Vetter | 2021-03-26 | 3 | -0/+6 |
| | | | | Related to https://github.com/profanity-im/profanity/issues/1512 | ||||
* | autocomplete: remove duplicate code in search functions | Michael Vetter | 2021-03-11 | 1 | -54/+16 |
| | | | | | | _search_next and _search_prev where exactly the same except taking the nex/prev from the list. Use one function with a direction argument. | ||||
* | autocomplete: Use asprintf don't calculate length twice | Michael Vetter | 2021-03-11 | 1 | -4/+9 |
| | | | | | | | | Through asprintf() we can get rid of malloc() + sprintf(). Also we don't need to calculate the strlen() again since asprintf() returns the bytes printes. Only non UTF-8 characters. But that was true before already. | ||||
* | Remove duplicate code in autocomplete_param* | Michael Vetter | 2021-03-11 | 1 | -29/+22 |
| | | | | | autocomplete_param_with_func and -autocomplete_param_with_ac had lots of duplicate code. | ||||
* | Upload: Fix unused return | Thorben Günther | 2021-03-11 | 1 | -4/+9 |
| | |||||
* | Update to the newest version of XEP 0363 (HTTP Upload) | Maximilian Wuttke | 2021-03-11 | 2 | -0/+32 |
| | | | | | | | | | | | | | 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> | ||||
* | Update copyright | Michael Vetter | 2021-01-08 | 2 | -2/+2 |
| | |||||
* | Fix deadlock on error before HTTP download has begun | William Wennerström | 2020-12-10 | 1 | -4/+6 |
| | |||||
* | Remove cmd_tiny, empty files and link nonce with IV | William Wennerström | 2020-12-07 | 3 | -2/+2 |
| | |||||
* | Add tests for format_call_external_argv | William Wennerström | 2020-12-07 | 1 | -2/+2 |
| | |||||
* | Fix bad order of parameters for url save | William Wennerström | 2020-12-07 | 1 | -1/+7 |
| | |||||
* | Rework url to filename | William Wennerström | 2020-12-06 | 2 | -8/+6 |
| | |||||
* | Move unique_filename_from_url functions to common | William Wennerström | 2020-12-04 | 2 | -21/+0 |
| | |||||
* | Refactor for threaded external executable for built-in download methods | William Wennerström | 2020-12-03 | 5 | -2/+45 |
| | |||||
* | Fix stubs and move some tests to http_common | William Wennerström | 2020-11-16 | 2 | -18/+12 |
| | |||||
* | Switch to g_strerror | William Wennerström | 2020-11-16 | 2 | -23/+19 |
| | |||||
* | Move common http tool code to http_common | William Wennerström | 2020-11-16 | 6 | -53/+154 |
| | |||||
* | Add I/O error handling and use filenames instead of file descriptors | William Wennerström | 2020-11-16 | 4 | -51/+87 |
| | |||||
* | Refactor OMEMO download into AESGCMDownload tool | William Wennerström | 2020-11-16 | 6 | -2/+221 |
| | |||||
* | Run make format on rebase | William Wennerström | 2020-11-16 | 4 | -57/+64 |
| | |||||
* | Remove unsafe Conent-Disposition inferring | William Wennerström | 2020-11-16 | 2 | -119/+19 |
| | |||||
* | Infer filename from content-disposition or URL | William Wennerström | 2020-11-16 | 2 | -7/+123 |
| | | | | | The Content-Disposition inferring is probably a bad idea security wise, so I am going to remove it. | ||||
* | Add http_download tool | William Wennerström | 2020-11-16 | 3 | -1/+287 |
| | |||||
* | Add guards for OMEMO | William Wennerström | 2020-11-16 | 1 | -1/+3 |
| | |||||
* | Move setup for AESGCM to omemo/crypto | William Wennerström | 2020-11-16 | 1 | -0/+2 |
| | |||||
* | Reformat HTTP get URL to AESGCM scheme | William Wennerström | 2020-11-16 | 2 | -30/+69 |
| | |||||
* | Refactor to use file stream | William Wennerström | 2020-11-16 | 2 | -24/+17 |
| | |||||
* | Initial /sendfile OMEMO encryption | William Wennerström | 2020-11-16 | 2 | -15/+15 |
| | |||||
* | Declare counter var inside loop | Michael Vetter | 2020-11-09 | 2 | -19/+10 |
| | | | | We require c99/gnu99 anyways. | ||||
* | parser.c: Use glib | Michael Vetter | 2020-07-23 | 1 | -4/+4 |
| | | | | | | | | We use malloc() to allcoate memory for the arguments. But later on in cmd_funcs.c we use g_strfreev() to free it. Let's use g_malloc() to allocate instead. Second change is to use g_malloc() and g_free() for a gchar. |