diff options
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_funcs.c | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 1a554ce4..ada53f9d 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9156,37 +9156,11 @@ cmd_url_open(ProfWin* window, const char* const command, gchar** args) } void -_url_open_fallback_method(ProfWin* window, const char* url) +_url_open_fallback_method(ProfWin* window, const char* url, const char* filename) { - /* - gboolean is_omemo_aesgcm = false; - gchar* scheme = g_uri_parse_scheme(url); - if (g_strcmp0(scheme, "aesgcm")) { - is_omemo_aesgcm = true; - } - free(scheme); - - if (is_omemo_aesgcm) { - int tmpfd; - char* tmpname = NULL; - if ((tmpfd = g_file_open_tmp("profanity.XXXXXX", &tmpname, NULL)) == -1) { - *err = "Unable to create temporary file for decryption stream."; - return NULL; - } - FILE* tmpfh = fdopen(tmpfd, "wb"); - - unsigned char* nonce; - unsigned char* key; - char* https_url = omemo_parse_aesgcm_url(url, nonce, key); - - _url_save_fallback_method(window, https_url, tmpname); - - int crypt_res = omemo_decrypt_file(tmpfh, - - remove(tmpname); - free(tmpname); - } - */ + // TODO(wstrm): Use _url_save_fallback_method?. + // We probably want to do the cmd_url_open in a separate thread and wait for + // the transfer to be finished before calling call_external. } void |