Commit Graph

14451 Commits

Author SHA1 Message Date
Philipp Hörist 3335482345 Add 'encryption' config options group
We have to save the value per account and contact, because otherwise
it could lead to problems if a jid is added to more than one account.

As key this uses a string in the form of 'Account-BareJid'.

The config option group 'contacts' is not used because there are values
like 'speller_language' that make more sense to set on a Jid basis, rather than a
Account-Jid basis.

Treat an empty config value or no config value as 'disabled', instead
of writing a config value of 'disabled'. This has the benefit that we
dont have to write config values for contacts were we dont use encryption.
2017-05-18 21:42:40 +02:00
Philipp Hörist a73f02735a Remove frozen logging on windows
Because of the new build process this has become obsolete
we can now log on windows with a simple

´Gajim.exe > log.txt 2>&1´
2017-05-17 15:57:23 +02:00
Philipp Hörist 148655c59f Terminate esession only if it was active before
This is a regression from !96
2017-05-17 14:31:25 +02:00
Philipp Hörist 381b9b0a6c Merge branch 'SSL_ERROR' into 'master'
Zeroconf: SSL_ERROR_* has been moved to ssl module

Closes #8625

See merge request !100
2017-05-17 13:21:47 +02:00
André Apitzsch e9038f2220 Zeroconf: SSL_ERROR_* has been moved to ssl module
fixes #8625
2017-05-16 23:51:12 +02:00
Philipp Hörist a0a27d9cb2 Use named icons in filetransfer window 2017-05-16 18:14:34 +02:00
Philipp Hörist 8d880e88dd Merge branch 'master' into 'master'
Switch to using MSYS2 for Windows build

See merge request !99
2017-05-16 16:44:45 +02:00
Philipp Hörist 6c9e68548b Switch to using MSYS2 for Windows build 2017-05-16 16:39:52 +02:00
Philipp Hörist 94be050aa6 Fix display of channel-secure icon 2017-05-15 10:10:42 +02:00
Philipp Hörist 9cf6218932 Merge branch 'style' into 'master'
install css style file

See merge request !97
2017-05-10 15:18:24 +02:00
André Apitzsch 7d30643ea7 install css style file 2017-05-08 23:13:47 +02:00
Philipp Hörist 8ec3ec8a58 Merge branch 'extensionpoints' into 'master'
New Encryption Plugin API

See merge request !96
2017-05-07 23:06:14 +02:00
Philipp Hörist 2e148a6133 Add encryption API to groupchat_control 2017-05-07 18:40:09 +02:00
Philipp Hörist ce7923e164 Remove log and enabled status from lock tooltip
- Log status is a feature that only works with xep-0136 which nobody uses anymore
- Even then we can only trust in the server/user to not log the session
- We should not imply that a client could control if messages are logged on the server or the other end,
 especially as this is about encryption and security we should be as accurate as possible

- The lock image is only shown if a encryption was sucessfully activated, so the enabled flag is unnecessary
2017-05-07 18:40:09 +02:00
Philipp Hörist cf07022cbd Remove ESessions encryption/decryption from core 2017-05-07 18:40:05 +02:00
Philipp Hörist 3fd35a041e Remove PGP encryption/decryption from core 2017-05-07 18:38:33 +02:00
Philipp Hörist 5116af037b Add Encryption Plugin API
- Add extension points when receiving/sending a message
- Add extension point for setting the lock image
- Add extension point after clicking the send button
- Add extension point when typing
- Add a new menu button to choose the desired encryption
- Extend the PluginManager to hold a list of encryption plugins
2017-05-07 18:38:06 +02:00
Philipp Hörist 3e6ecccc26 Merge branch 'appdata' into 'master'
appdata: remove zero width space (U+200B) add by mistake

See merge request !95
2017-05-06 23:31:11 +02:00
André Apitzsch aadcbef11b appdata: remove zero width space add by mistake 2017-05-06 23:27:44 +02:00
Philipp Hörist 2aede575a9 Merge branch 'appdata' into 'master'
add AppData file

Closes #8174

See merge request !94
2017-05-06 22:36:46 +02:00
André Apitzsch 78fd66fac3 add AppData file
fixes #8174
2017-05-06 21:31:44 +02:00
Philipp Hörist 37a313701c Fix exception when minimizing a groupchat 2017-05-06 11:29:23 +02:00
Philipp Hörist 6e8e5aec51 Merge branch 'stun_discovery' into 'master'
Use account hostname for STUN server discovery

See merge request !93
2017-05-05 22:42:47 +02:00
Marc Schink 61c2259a9a Use account hostname for STUN server discovery
Use the account hostname instead of the target hostname of the
_xmpp-client._tcp SRV resource record for STUN server discovery.
Otherwise, discovery fails if both hostnames are different.
2017-05-03 10:01:49 +02:00
Philipp Hörist bc504f90b1 Make default proxy always available
If the user had an empty `file_transfer_proxies` config setting
no proxies were used. As we discover the default server proxy ourself the
user should not have to write it to his config setting to make use of it.
2017-05-02 16:55:39 +02:00
Philipp Hörist 30d3f0c2ba Merge branch 'new' into 'master'
Add support for systemd's networkd

See merge request !91
2017-05-02 15:32:37 +02:00
Jörg Sommer 5e8c9fe590 network_watcher: Add support for systemd-networkd 2017-05-02 10:15:23 +02:00
Philipp Hörist 2cd6634c0e Dont show warning on missing 0184 receipt
https://xmpp.org/extensions/xep-0184.html#what tells us that we
SHOULD NOT impute any meaning to the fact that we did not receive an ack message
2017-05-01 19:42:57 +02:00
Philipp Hörist 79dc0c49f1 Always send message delivery receipts requests
- We want to send requests also to offline contacts.
- The XEP is wide spread chances are high that a contact supports it.
- It gets really complicated, when we want to guess if a offline contact supports receipts
2017-05-01 19:23:31 +02:00
Philipp Hörist d346333d2a Drop some message from ourself
- 'received'-Carbons from ourself, because we either received
   the message directly or got a 'sent'-Carbon about it
-  Messages from our own full jid, this can happen when we send
   a Message to ourself and no other resource is online.
2017-05-01 19:08:19 +02:00
Philipp Hörist 33a584b8b0 Dont use message receipts in message to ourself 2017-05-01 19:08:11 +02:00
Philipp Hörist c49d13bcae Use BareJID when sending message to ourself 2017-05-01 17:58:55 +02:00
Philipp Hörist e02798dc19 Dont send chatstates to own resources 2017-05-01 17:52:19 +02:00
Philipp Hörist 2126d4304a Extend method to return our own full jid 2017-05-01 17:23:46 +02:00
Philipp Hörist 0eb2433c17 Fix regression from !85
Disabled accounts are not in gajim.connections, which leads to a
key error.
2017-05-01 16:08:02 +02:00
Philipp Hörist 9be4bb3ad8 Merge branch 'invite' into 'master'
Fix mediated groupchat invites

Closes #8603 and #8468

See merge request !92
2017-05-01 15:58:10 +02:00
Philipp Hörist 64ae063f9c Fix mediated groupchat invites
- Push Invitation and Decline event much earlier
- Refactor Logic to decide if mediated or not
  Ejabbered 17.03 does add a 'jabberconference' namespace into mediated invites which has broken our logic
- Dont add a groupchat contact on invitation, always add the inviter to the roster
2017-05-01 15:33:38 +02:00
Philipp Hörist d06ba96a89 Update dependency in features window
gir1.2-gupnpigd-1.0 is the correct python3/GTK3 dependency on Debian
2017-04-30 18:45:50 +02:00
Philipp Hörist 89f1e9820d Merge branch 'dbus' into 'master'
Port Network Watcher to Gio API

See merge request !88
2017-04-29 23:37:55 +02:00
Philipp Hörist d0357eaa29 Use different mnemonic
O is already used for the OK button
2017-04-29 21:09:58 +02:00
Philipp Hörist 6a4cbf06ec Fix Button labels 2017-04-29 20:58:35 +02:00
Philipp Hörist b6db6026be Fix typo 2017-04-29 20:39:58 +02:00
Philipp Hörist b94c827400 Merge branch 'fixibb' into 'master'
Fix IBB

Closes #8196

See merge request !90
2017-04-29 18:49:17 +02:00
Philipp Hörist 3fb12148b9 Remove not working proxys 2017-04-29 17:22:26 +02:00
Philipp Hörist 7cb7bcaae6 Refactor IBB Handlers
- Move handling of Data IQs into IBBIqHandler
- Call SendHandler with file_props
- Save last sent id in file_props.syn_id
- Remove some useless checks, now that we call SendHandler with file_props
- Send item-not-found error on invalid session id
2017-04-29 17:22:18 +02:00
Philipp Hörist 385d6c3081 On IBB cancel set correct 'to' attr 2017-04-29 16:58:41 +02:00
Philipp Hörist 3e592c980e Only make pause button active on pause-able transfers 2017-04-29 16:58:40 +02:00
Philipp Hörist 0d8c008764 Fix typo in event type 2017-04-29 16:58:40 +02:00
Philipp Hörist 2ede022422 Dont hash file on filetransfer error 2017-04-29 16:58:39 +02:00
Andrey Gursky 8c51eb72b9 finish jingle file transfer session for files without hash 2017-04-29 16:58:31 +02:00