It was causing errors on pre-existent installations, that used the field
as if it contained the key.
Relaxed permissions check, as it was silently return if they were wrong
and this is very confusing for a user (that should open the log to see the
error)
- privateKey now stored in ~/.kde4/apps/kdeconnect/key.pem
- publicKey now stored in ~/.kde4/apps/kdeconnect/key.pub
- Daemon checks right permission(very strict) when starting
Testing needed :)
Before this patch, all plugins had to discard received packages that were
not for themselves. This could be a security problem (a plugin could sniff
other plugin's packages) and also adds some complexity and processing.
This patch makes the device instance aware of what services are required
by the different plugins and when a package is received the corresponding
plugins will get the package.
These services will be listed on the plugin's desktop file, so the user
can decide whether to enable a plugin.
Note that this only works for receiving, not sending.
REVIEW: 113210
Now protocol version is only sent once (in the identity package)
Removed "isEncrypted" bit, using type "kdeconnect.encrypted" instead.
NetworkPackage's decrypt and unserialize return false when find problems
Updated tests.