Maciek Borzecki
3f3abe76cb
crypt: take string instead of uint8[] as PEM encoded certificate
7 years ago
Maciek Borzecki
20077fdb54
crypt: add helper for fingerprinting certificates
7 years ago
Maciek Borzecki
83e1ef73d6
mconnect: export own certificate over DBus
mconnect's certificate is accessible as Certificate property of
org.mconnect.DeviceManager interface on /org/mconnect/manager object.
7 years ago
Maciek Borzecki
1905ff743a
mconnectctl: display device certificate
Display device certificate when running show-device in verbose mode. To
introspect the certificate run the following:
mconnectctl show-device --verbose /org/mconnect/device/0 | \
certtool -i
7 years ago
Maciek Borzecki
91d75d65bd
device-proxy: make device certificate readable through DBus
7 years ago
Maciek Borzecki
89f9c5c332
device: backwards compatible loading of cached devices
Previous version of mconnect did not have a 'certificate' key in device section.
When loading such device do not fail instantly but rather log a warning and let
the loading continue further.
7 years ago
Maciek Borzecki
276c7d3ffe
device: do not access core instance when not needed
7 years ago
Maciek Borzecki
051774ba43
channel: cleanup warnings
7 years ago
Maciek Borzecki
2e711b468e
channel: cleanup this calls and property access
7 years ago
Maciek Borzecki
d3ff6dcfa0
channel: use TlsCertificate from core
7 years ago
Maciek Borzecki
838d0cdbcf
core: generate certificate and key during startup
The code will now generate the private key and certificate during startup.
There is a potential incompatibility with previous releases and the user may
need to unpair the device (in KDE Connect app) and pair again.
7 years ago
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