From 600543ad2404d13506fc8db5c9a7e42d878f1a4d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 9 May 2016 18:17:31 +0200 Subject: [PATCH] add sm pdus for ecdh --- src/bluetooth.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bluetooth.h b/src/bluetooth.h index 08dba93b2..78e40ee7f 100644 --- a/src/bluetooth.h +++ b/src/bluetooth.h @@ -951,7 +951,9 @@ typedef enum { SM_CODE_IDENTITY_INFORMATION, SM_CODE_IDENTITY_ADDRESS_INFORMATION, SM_CODE_SIGNING_INFORMATION, - SM_CODE_SECURITY_REQUEST + SM_CODE_SECURITY_REQUEST, + SM_CODE_PAIRING_PUBLIC_KEY, + SM_CODE_PAIRING_DHKEY_CHECK, } SECURITY_MANAGER_COMMANDS; // IO Capability Values @@ -964,9 +966,11 @@ typedef enum { } io_capability_t; // Authentication requirement flags -#define SM_AUTHREQ_NO_BONDING 0x00 -#define SM_AUTHREQ_BONDING 0x01 -#define SM_AUTHREQ_MITM_PROTECTION 0x04 +#define SM_AUTHREQ_NO_BONDING 0x00 +#define SM_AUTHREQ_BONDING 0x01 +#define SM_AUTHREQ_MITM_PROTECTION 0x04 +#define SM_AUTHREQ_SECURE_CONNECTION 0x08 +#define SM_AUTHREQ_KEYPRESS 0x10 // Key distribution flags used by spec #define SM_KEYDIST_ENC_KEY 0X01