Commit graph

270 commits

Author SHA1 Message Date
Marvin W 55b148a0f7
Use system provided libsignal-protocol-c by default
You can still compile in tree by using --with-libsignal-in-tree flag
2020-01-21 21:55:08 +01:00
Marvin W 41f9827166
Improve log messages for OMEMO sending issues 2020-01-15 23:45:00 +01:00
Marvin W 3cfe0d60f6
Initialize GCrypt on libsignal setup 2020-01-15 19:31:47 +01:00
Marvin W b2af8c5112
Fix various typing issues in signal bindings 2020-01-09 13:39:36 +01:00
Marvin W 8cca049e5c
Fix file receival in groupchat pmsx 2020-01-09 13:21:54 +01:00
Marvin W 4a3cef89fd
Don't allow newlines in URLs, also clean up on http file transfer detection 2019-12-26 15:46:58 +01:00
Translations 2d8a1374ad Update translations 2019-12-24 23:31:17 +01:00
Marvin W a0a956ee08
Properly check Jids everywhere 2019-12-23 16:58:53 +01:00
Marvin W 6257e9705c
OMEMO: Improve handling of newly added devices 2019-12-23 16:49:56 +01:00
Translations 013786a120 Update translations 2019-12-19 15:26:54 +01:00
fiaxh c3532bdf31 Refactor MAM catchup. Fetch from latest to earliest message. 2019-12-18 20:35:04 +01:00
Marvin W bd45fdf1e1
Add version and adjust some cmake 2019-12-18 00:51:49 +01:00
Translations 11c18cdf72 Update translations 2019-12-16 21:23:18 +01:00
fiaxh 21c01dcdcb Omemo contact details dialog: Only show inactive keys Expander if there are any 2019-12-13 20:55:39 +01:00
Wiktor Kwapisiewicz 687ec1a159 Add support for HTTP Upload headers
Some services use Authorization header [0] to pass upload credential
data. This avoids the token being exposed in server logs and is allowed
by XEP-0363 since version 0.5.0.

This change adds support for headers allowed in XEP-0363: Authorization,
Expires and Cookie.

[0]: https://xmpp.org/extensions/xep-0363.html#request
2019-11-19 21:24:28 +01:00
Translations 65feaece87 Update translations 2019-11-14 01:56:13 +01:00
Wiktor Kwapisiewicz 0acbe4855d Fix reporting failed HTTP upload
Status code can't be less than 200 and greater than or equal 300 at the same
time. Using || instead of && marks all uploads that do not have 2xx status code
as "failed".
2019-11-04 15:15:28 +01:00
fiaxh 247a368150 OMEMO: Don't set publish options, configure only bundle node instead 2019-11-04 15:11:36 +01:00
Marvin W 388cc56674
Fix OMEMO file transfer GCM tag 2019-10-28 22:38:54 +01:00
fiaxh 0082d376af Fix accept/reject new OMEMO key buttons in current Adwaita theme versions 2019-10-28 01:28:40 +01:00
fiaxh 26e970a4d4 Colapse inactive keys in OMEMO keys dialog 2019-10-22 01:23:43 +02:00
fiaxh c032ab00ec Don't send delivery recipts or chat states for own messages
fixes #631
2019-10-22 01:23:08 +02:00
Marvin W 394862dbd3
Fix wrong size being reported for OMEMO encrypted HTTP file transfers
Fixes #630
2019-10-18 21:10:19 +02:00
fiaxh 8e6db8859c Plugins: Set UI texts in code instead of .ui files to fix translations
Co-authored-by: srgcdev <srg.dev@posteo.net>
2019-10-10 00:21:45 +02:00
fiaxh 7adb0e82fb Fix pubsub item listener notifying 2019-10-02 19:09:29 +02:00
fiaxh 74c29d4df1 Add Bookmarks2 implementation, introduce bookmarks interfaces 2019-09-29 01:53:59 +02:00
Marvin W f746ce74ce
Fix compilation with older gcrypt 2019-09-17 00:36:25 +02:00
Marvin W 9daf18f031
Fix warnings and compilation with older valac 2019-09-16 23:57:48 +02:00
Marvin W 392cb472ab
Add support for JET-OMEMO 2019-09-16 23:31:11 +02:00
Marvin W e899668213
Add JET support 2019-09-16 23:31:11 +02:00
Marvin W 87d64524c8
Add basic crypto-vala 2019-09-16 23:31:11 +02:00
Maxime “pep” Buquet 2a70a4e83f Make TestCase protected for newer vala
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-11 15:35:46 +02:00
fiaxh bd7fde99af fixup Fix some warnings 2019-09-10 19:36:11 +02:00
hrxi d5d305193c Fix some warnings
Instances of `RegexError` are just asserted as `assert_not_reached` as
they cannot really fail except for allocation failure if the given regex
is valid.
2019-09-10 19:36:11 +02:00
Translations f0c2ce0047 Update translations 2019-08-28 14:29:55 +02:00
fiaxh d02f7b6a3a Fix runtime critical 2019-08-26 17:20:10 +02:00
fiaxh 0521afa3d8 Fix specified size for encrypted file uploads 2019-08-21 22:37:52 +02:00
fiaxh 3ad2891eb8 Set OMEMO devicelist + bundle node access model to public 2019-08-09 13:44:39 +02:00
fiaxh 08a5088c16 Rework encryption enabling logic + UI 2019-08-02 19:20:04 +02:00
Henrik Ullman 432074ff1b Fix Manage Key dialog string for verified keys (#588) 2019-07-28 16:42:54 +02:00
fiaxh f0abb8aaf9 Refactor file receive/send interfaces and UI 2019-07-18 02:03:42 +02:00
fiaxh 6c480b862e OMEMO: Add debug logs for incoming bundles 2019-07-08 18:46:30 +02:00
fiaxh 06db4d0aa6 OMEMO: Rename variables, refactor can_encrypt 2019-07-08 18:46:30 +02:00
fiaxh a7aa5130f8 OMEMO code cleanup: Move TrustLevel out of Database 2019-07-08 18:46:30 +02:00
fiaxh 837de4063d OMEMO: Move files to fitting subdirectory 2019-07-08 18:46:30 +02:00
Translations 701175fcd3 Update translations 2019-07-04 16:54:05 +02:00
hrxi c245f7e34a Fix a couple of typos and double imports 2019-06-01 17:13:33 +02:00
fiaxh 11d4f3e999 signal-protocol: Fix incorrect free()
fixes #562
2019-05-26 20:20:09 +02:00
fiaxh 03f25e1f87 Remove Message.stanza field 2019-05-26 20:20:09 +02:00
Translations 26a8538e97 Update translations 2019-03-16 14:43:48 +01:00
fiaxh 6f6e4b97cb Use glib log functions 2019-03-15 22:01:34 +01:00
fiaxh a493269791 Fix OMEMO new device notifications appearing in wrong context 2019-03-14 23:00:27 +01:00
fiaxh 952ac95484 Use regex literals, fixes some compiler warnings 2019-03-14 17:39:31 +01:00
fiaxh 94eea332b1 Wait for account to be persisted before creating omemo_db.identity entry
fixes #128
2019-03-14 17:39:31 +01:00
fiaxh 161e4c1986 Add non-CSD alternative for more windows 2019-03-14 17:39:31 +01:00
Marvin W cc7b0aa7bd
Move GCM tag into per-device-encrypted area to be compatible with current OMEMO version, fixes #514 2019-03-07 20:17:56 +01:00
fiaxh 78ec625dbe Check for eme tag before adding fallback text for empty-body OMEMO messages 2019-02-20 01:48:07 +01:00
Thibaut Girka b97aa9b44b Add fallback text when a known to be OMEMO-encrypted message failed to decrypt 2019-02-17 17:18:34 +01:00
Translations e55fb9cca5 Update Translations 2019-02-14 21:13:42 +01:00
fiaxh 736522737f Make file read/write async 2019-02-14 00:04:01 +01:00
Marvin W 4a8d628924
Do not use signal_protocol_internal.h 2019-02-12 15:27:58 -06:00
Marvin W 8e14ac6d71
Rewrite OMEMO crypt buffer logic to fix #474 2019-01-16 23:02:23 +01:00
fiaxh 8b08d874fa Fix OMEMO decryption if MUC real_jid is not known (because sender is offline)
fixes #490
2019-01-09 00:59:28 +01:00
Marvin W cdd4c0b854
Find libqrencode using cmake/pkg-config logic 2019-01-02 15:36:41 +01:00
Marvin W 7012023d59
Bump libsignal-protocol-c dependency to 2.3.2 2019-01-02 13:27:11 +01:00
Translations 4c8f4bef66 Update Translations
Arabic: ButterflyOfFire
Basque: beriain
Chinese (Simplified): Sak94664
Dutch: flevop, Nathan Follens
Flemish: Nathan Follens
French: Sioul
Galician: Xosé M
German: H A, ssantos
Luxembourgish: Dennis Fink
Norwegian Bokmål: Allan Nordhøy
Romanian: Licaon Kter
Spanish: sergio
2018-12-31 16:51:15 +01:00
fiaxh 446e86d4ad Check FileTransfer's mime_type for null (unknown) when handeling it
fixes #479
2018-12-31 16:49:22 +01:00
fiaxh 680d28360c Check content_length for null before parsing in http HEAD message response
fixes #468
2018-11-29 16:30:20 +01:00
fiaxh 7c1d580e17 Fix aesgcm http file up/download bugs 2018-11-27 18:28:28 +01:00
fiaxh 141db9e40a Implement aesgcm encrypted file upload 2018-11-27 15:02:18 +01:00
fiaxh 01360a73ae FileProvider for aesgcm links
Co-authored-by: Thibaut Girka <thib@sitedethib.com>
2018-11-27 03:41:31 +01:00
fiaxh 2208ff9799 Restructure (http) file provider flow: Separate download&get_info, download in provider, move XmppStreamModule into xmpp-vala 2018-11-27 03:38:42 +01:00
Tim Henkes 7497f1f17b Allow 12 for the size of the IV 2018-11-20 08:07:28 -06:00
Rahix 9e5f30487a Add a white border around QR-codes
Signed-off-by: Rahix <rahix@rahix.de>
2018-11-16 11:24:17 -06:00
Translations 45236d07bc Update translations 2018-11-14 21:31:47 +01:00
Licaon_Kter 38b532034f Fix Typo 2018-11-11 10:36:25 -06:00
Allan Nordhøy 57c6708e2d Spelling, added comma and ending dot. 2018-11-11 06:33:50 -06:00
Translations 2e21414225 Update translations
Arabic: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Galician: Iván Seoane <ivanrsm1997@gmail.com>
Italian: Valerio Baldisserotto <svalo@libersoft.it>
Norwegian Bokmål: Allan Nordhøy <epost@anotheragency.no>
Romanian: Licaon Kter <licaon.kter@protonmail.com>
2018-11-10 18:02:58 +01:00
fiaxh 7e6668d283 Use QR-code icon for OMEMO QR-code button 2018-11-10 17:24:48 +01:00
Marvin W 214906e1a5
Hide OMEMO messages from untrusted sources 2018-11-10 08:05:54 -06:00
Marvin W dfb75e2cda
Merge PR #413 "Improvements to the OMEMO plugin" 2018-11-10 08:05:14 -06:00
fiaxh f60ebc2af6 Use ContentItems for NotificationEvents 2018-11-07 00:17:24 +01:00
Translations ab7cd67851 Update translations
Arabic: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Basque: Aitor Beriain <beriain@bitmessage.ch>
Dutch: Nathan Follens <nthn@unseen.is>
Flemish: Nathan Follens <nthn@unseen.is>, woutersj <woutersj@gmail.com>
French: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>, Jean-Baptiste <jean-baptiste@holcroft.fr>
Galician: Xosé M <xosem@disroot.org>
Italian: Valerio Baldisserotto <svalo@libersoft.it>
Luxembourgish: Dennis Fink <dennis.fink@c3l.lu>
Norwegian: Allan Nordhøy <epost@anotheragency.no>, Petter Reinholdtsen <pere-weblate@hungry.com>
Polish: Michael K <kellermichal@gmail.com>
Portuguese (Brazil): Rhagni Oliveira <rhagni@gmail.com>
Romanian: Licaon Kter <licaon.kter@protonmail.com>
Spanish: Bonber Rash <bonber@protonmail.com>
2018-10-23 23:57:59 +02:00
Translations f876114126 Update translations
Arabic: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Basque: account1 <surajchawla61@gmail.com>, Aitor Beriain <beriain@bitmessage.ch>
Dutch: Nathan Follens <nthn@unseen.is>
Flemish: Nathan Follens <nthn@unseen.is>
French: Étienne Deparis <etienne@depar.is>
Hungarian: notramo <notramo@vipmail.hu>
Italian: Valerio Baldisserotto <svalo@libersoft.it>
Luxembourgish: Dennis Fink <dennis.fink@c3l.lu>
Norwegian Bokmål: Allan Nordhøy <epost@anotheragency.no>
Romanian: Licaon Kter <licaon.kter@protonmail.com>
2018-09-07 13:45:07 +02:00
fiaxh 0e41fb3294 Add hidden column to content_item table 2018-08-31 16:26:23 +02:00
Samuel Hand 65a12021bc Solve a few compiler warnings 2018-08-14 02:00:39 +01:00
Samuel Hand 3c819a19e1 Properly decrypt messages from MUCs 2018-08-14 01:37:55 +01:00
bobufa 1d9ce7f471 sort file transfers into correct conversation 2018-08-13 22:39:18 +02:00
bobufa 4901b09670 add search filter expressions 2018-08-13 22:39:18 +02:00
bobufa 2e2a9a2390 accumulate conversation content in meta db table 2018-08-13 22:39:07 +02:00
bobufa 3ea00446fb refactor conversation item management (accumulate them in libdino) 2018-08-13 22:04:47 +02:00
Samuel Hand 65724233f0 Move formatting out of translatable strings in manage_key_dialog 2018-08-12 12:42:06 +01:00
Samuel Hand 380e5edc51 Change own-notifcation wording and add a default action 2018-08-12 12:16:42 +01:00
Samuel Hand c59faad5bf Make the key lists scrollable 2018-08-12 11:23:32 +01:00
Samuel Hand e2932af18f Index consistently with the identity id 2018-08-12 11:04:40 +01:00
Samuel Hand b589275ab4 Actually perform the database update when changing blind trust 2018-08-11 15:56:30 +01:00
Samuel Hand 9b98428996 Un-dim fingerprint when accepting keys 2018-08-11 15:54:14 +01:00
Samuel Hand 72cb5b4f90 Fix OMEMO not working when the database is re-created for an existing account 2018-08-11 14:19:06 +01:00
Samuel Hand 9d15c464c2 Merge branch 'master' into omemo-muc 2018-08-11 12:27:57 +01:00
Samuel Hand d7b5db1d9f Make strings translatable 2018-08-10 12:47:56 +01:00