diff options
Diffstat (limited to 'input/server.c')
| -rw-r--r-- | input/server.c | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/input/server.c b/input/server.c index 9e97490f..b140bb6b 100644 --- a/input/server.c +++ b/input/server.c @@ -34,6 +34,8 @@  #include <bluetooth/bluetooth.h>  #include <bluetooth/l2cap.h>  #include <bluetooth/hidp.h> +#include <bluetooth/hci.h> +#include <bluetooth/hci_lib.h>  #include <glib.h> @@ -98,6 +100,14 @@ static void create_device(struct session_data *session)  		goto cleanup;  	} +	if (req.subclass & 0x40) { +		if (encrypt_link(&session->src, &session->dst) < 0) { +			if (req.rd_data) +				free(req.rd_data); +			goto cleanup; +		} +	} +  	info("New input device %s (%s)", addr, req.name);  	err = ioctl(ctl, HIDPCONNADD, &req); | 
