diff options
| author | William Wennerström <william@wstrm.dev> | 2020-06-28 15:16:03 +0200 |
|---|---|---|
| committer | William Wennerström <william@wstrm.dev> | 2020-11-16 21:58:08 +0100 |
| commit | f4ab1ca9e75bbc635781c795089bf669ee08942d (patch) | |
| tree | b928a6dfcf9c093b6aee7bcecf0dfd139c1298e2 /src/command | |
| parent | e98644f631b516e38dd4142103356ceb31628aab (diff) | |
| download | profani-tty-f4ab1ca9e75bbc635781c795089bf669ee08942d.tar.gz | |
Move file encryption function to public header
Diffstat (limited to 'src/command')
| -rw-r--r-- | src/command/cmd_funcs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index f000ae1e..25d21264 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -73,7 +73,6 @@ #include "plugins/plugins.h" #include "ui/ui.h" #include "ui/window_list.h" -#include "omemo/crypto.h" #include "xmpp/xmpp.h" #include "xmpp/connection.h" #include "xmpp/contact.h" @@ -4873,8 +4872,8 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args) FILE *tmpfh = fdopen(tmpfd, "wb"); int crypt_res; - alt_scheme = AES256_GCM_URL_SCHEME; - alt_fragment = aes256gcm_encrypt_file(fh, tmpfh, file_size(fd), &crypt_res); + alt_scheme = OMEMO_AESGCM_URL_SCHEME; + alt_fragment = omemo_encrypt_file(fh, tmpfh, file_size(fd), &crypt_res); if (crypt_res != 0) { char *msg = "Failed to encrypt file."; cons_show_error(msg); @@ -4949,7 +4948,7 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args) out: #ifdef HAVE_OMEMO if (alt_fragment != NULL) - aes256gcm_fragment_free(alt_fragment); + omemo_free(alt_fragment); #endif if (filename != NULL) free(filename); |