Maciek Borzecki
d632aa5c74
crypt: dump openssl cryptography helpers in favor of GnuTLS based wrapper
Replace OpenSSL helpers with ones based on GnuTLS. GnuTLS is already an indirect
dependency since we require GLib's TLS support. As support for older protocol
versions was removed, we will not need any extra library for handling explicit
packet decryption.
This change will also resolve potential license incompatibility issues.
7 years ago
Maciek Borzecki
1e1f72cc06
device, channel: no longer support explicitly encrypted packets
7 years ago
Maciek Borzecki
836244a5dc
mousepad: accept both kdeconnect.mousepad and kdeconnect.mousepad.request
7 years ago
Maciek Borzecki
49fa30c841
device, channel, packet: support for TLS encrypted channel
Introduce support for device channel encryption using TLS. The change is
compatible with current KDE Connect protocol version 7.
Device no longer has a public key, instead the public key was replaced by its
certificate as obtained during TLS handshake.
Device channel connection is now 3 step - first, the initial connection happens,
after which an identity packet is sent to the device, followed by TLS
handshake (including crypto suite negotiation, certificate exchange). Note, KDE
Connect supports TLS 1.0 at the moment. Failure to perform a TLS handshake will
cause device connection to be dropped.
7 years ago
Maciek Borzecki
33b0b9ef3a
mconnectctl: add active field
8 years ago
Maciek Borzecki
235578165f
device: cleanup out parameters in merge_capabilities()
8 years ago
Maciek Borzecki
5a373602cb
packet: support payload information
8 years ago
Andy Holmes
28c8345eca
add device_added, device_removed signals
7 years ago
Andy Holmes
f8b0de37a8
add 'disallow_device()' function to devicemanager.vala and devicemanager-proxy.vala
8 years ago
Maciek Borzecki
50057f935b
mconnectctl: use IsConnected property
8 years ago
Maciek Borzecki
60461c08ab
mconnectctl: --verbose switch
Affects show-device output.
8 years ago
Maciek Borzecki
8894650a9f
device-proxy: add is_connected (bool IsConnected) property
Hook to connected()/disconnected() Device signals.
8 years ago
Maciek Borzecki
c932b851df
device: make is_active a simple property
8 years ago
Maciek Borzecki
64bb2741f7
device: emit connected() signal
8 years ago
Maciek Borzecki
3f2b15715f
device-proxy: signal PropertiesChanged
8 years ago
Maciek Borzecki
a1bc21e07a
battery-proxy: remove battery(level, charing) signal
8 years ago
Maciek Borzecki
99dd419d6a
battery-proxy: use DBusPropertyNotifier helper for sending property notifications
8 years ago
Maciek Borzecki
74378335f5
property-proxy: helper class for sending out DBus PropertiesChanged signals
8 years ago
Maciek Borzecki
a0f1ba8efa
mconnect/battery-proxy: send org.freedesktop.DBus.Properties.PropertiesChanged
8 years ago
Maciek Borzecki
4c542bf551
crypt: cleanup deprecated RSA_generate_key()
8 years ago
Maciek Borzecki
11cd80adcf
crypt: cleanup tabs
8 years ago
Maciek Borzecki
ed2c15210a
battery-proxy: add Level and Charging properties to DBus interface
8 years ago
Maciek Borzecki
278d4ca2a4
device-proxy, devicemanager-proxy: register packet handlers on DBus
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
debd2c5a53
devicemanager: make sure to notify about new device before device capability signals
8 years ago
Maciek Borzecki
c1f18c11c3
devicemanager, packethandlers: rework device capability handling
8 years ago
Maciek Borzecki
fb1108bf91
device: improved device capabilty handling
8 years ago
Maciek Borzecki
462ecc3a60
core: formatting change
8 years ago
Maciek Borzecki
ea6577b0e5
device, discovereddevice, utils: use same method for generating 'unique' device strings
8 years ago
Maciek Borzecki
8aee6ecfcc
mconnectctl: print capabilities
8 years ago
Maciek Borzecki
e4b82e1cfd
mconnect/main: initialize Gdk
Mousepad handler requires Gdk to be initiazed.
8 years ago
Maciek Borzecki
47f1d819c5
device-proxy: make object path part of DeviceDBusProxy
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
725eec8214
battery-proxy: track bus registration ID
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
aa7262b89a
mousepad: distinguish mousepad capability and packets
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
4f09325cb4
packethandlers-proxy, devicemanager-proxy: register per-device DBus interfaces of packet handlers
8 years ago
Maciek Borzecki
5accd01ee1
battery-proxy: DBus interface for battery packet handler
8 years ago
Maciek Borzecki
b89b34de8d
ping-proxy: DBus interface of ping packet handler
8 years ago
Maciek Borzecki
f8e8a30e33
device-proxy: keep track of per-device DBus exported packet handlers
8 years ago
Maciek Borzecki
8dfcf6c189
packethanlerinterface-proxy: packet handler exported over DBus
8 years ago
Maciek Borzecki
95c16fed52
ping, battery, mousepad: make packet types public
8 years ago
Maciek Borzecki
90e48f2333
device: proper pair handling if device is already paired
8 years ago
Maciek Borzecki
dd9f395c8a
device: keep track of capabilities when saving/loading from cache
8 years ago
Maciek Borzecki
bc9c87e4bf
mconnect, crypt: cleanup logging, use verbose debug where possible
8 years ago
Maciek Borzecki
f1d4552c57
utils, application: verbose debug logging
8 years ago
Maciek Borzecki
4b65e59bb2
utils: generic helpers
8 years ago
Maciek Borzecki
83f5f9dfec
ping: add ping handler
8 years ago
Maciek Borzecki
3b4fe74843
devicemanager: reduce cache update chatter
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
6787377f59
device: handle split brain
Handle a scenario when we thing we are not paired, but device sends us a packet
that clearly indicates we have a channel open. In this case assume that we are
paired and send a pair packet ourselves.
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
e3b79fc03e
devicemanager: update devices cache when device pair status is changed
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
910ac09458
device: setup pair timeout only if expecting a response
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
9258033af9
device, devicemanager: simplify device activation
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago