summaryrefslogtreecommitdiff
path: root/opt/profanity/openssl-aesgcm-download.patch
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/profanity/openssl-aesgcm-download.patch
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/profanity/openssl-aesgcm-download.patch')
-rw-r--r--opt/profanity/openssl-aesgcm-download.patch24
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'",