diff options
Diffstat (limited to 'opt/profanity/openssl-aesgcm-download.patch')
| -rw-r--r-- | opt/profanity/openssl-aesgcm-download.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/opt/profanity/openssl-aesgcm-download.patch b/opt/profanity/openssl-aesgcm-download.patch new file mode 100644 index 0000000..c0a7ad4 --- /dev/null +++ b/opt/profanity/openssl-aesgcm-download.patch @@ -0,0 +1,24 @@ +--- a/src/tools/aesgcm_download.c ++++ b/src/tools/aesgcm_download.c +@@ -105,17 +105,17 @@ + return NULL; + } + +- gcry_error_t crypt_res; ++ int crypt_res; + crypt_res = omemo_decrypt_file(tmpfh, outfh, + bytes_received, fragment); + fclose(tmpfh); + remove(tmpname); + +- if (crypt_res != GPG_ERR_NO_ERROR) { ++ if (crypt_res != 0) { + http_print_transfer_update(aesgcm_dl->window, aesgcm_dl->id, THEME_ERROR, ENTRY_ERROR, + "Downloading '%s' failed: Failed to decrypt " +- "file (%s).", +- aesgcm_dl->url, gcry_strerror(crypt_res)); ++ "file (%d).", ++ aesgcm_dl->url, crypt_res); + } else { + http_print_transfer_update(aesgcm_dl->window, aesgcm_dl->id, THEME_ONLINE, ENTRY_COMPLETED, + "Downloading '%s': done\nSaved to '%s'", |
