summaryrefslogtreecommitdiff
path: root/opt/profanity/openssl-omemo-h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'opt/profanity/openssl-omemo-h.patch')
-rw-r--r--opt/profanity/openssl-omemo-h.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/opt/profanity/openssl-omemo-h.patch b/opt/profanity/openssl-omemo-h.patch
new file mode 100644
index 0000000..558d3ba
--- /dev/null
+++ b/opt/profanity/openssl-omemo-h.patch
@@ -0,0 +1,19 @@
+--- a/src/omemo/omemo.h
++++ b/src/omemo/omemo.h
+@@ -33,7 +33,6 @@
+ *
+ */
+ #include <glib.h>
+-#include <gcrypt.h>
+
+ #include "ui/ui.h"
+ #include "config/account.h"
+@@ -99,7 +98,7 @@
+ char* omemo_on_message_recv(const char* const from, uint32_t sid, const unsigned char* const iv, size_t iv_len, GList* keys, const unsigned char* const payload, size_t payload_len, gboolean muc, gboolean* trusted);
+
+ char* omemo_encrypt_file(FILE* in, FILE* out, off_t file_size, int* gcry_res);
+-gcry_error_t omemo_decrypt_file(FILE* in, FILE* out, off_t file_size, const char* fragment);
++int omemo_decrypt_file(FILE* in, FILE* out, off_t file_size, const char* fragment);
+ void omemo_free(void* a);
+ int omemo_parse_aesgcm_url(const char* aesgcm_url, char** https_url, char** fragment);
+