diff options
author | Casper Bonde <c.bonde@samsung.com> | 2015-04-21 13:15:50 +0200 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-06-03 03:44:17 +0000 |
commit | 3e4c2dc18346158235066b54924db708accc63ce (patch) | |
tree | 8bb52b550ea5c706a21e70e301270dadd0b4764c | |
parent | cac8ab8abc8e4c3b75cc01efad69ff668ea81f22 (diff) | |
download | hardware_libhardware-3e4c2dc18346158235066b54924db708accc63ce.zip hardware_libhardware-3e4c2dc18346158235066b54924db708accc63ce.tar.gz hardware_libhardware-3e4c2dc18346158235066b54924db708accc63ce.tar.bz2 |
Add support for MITM for BluetoothSockets (3/4)
This change adds an option to enforce Man-in-the-middle protection
for the authentication process. This feature is needed for the Sim
Access Profile.
Change-Id: I35d22a516ecbfc011ed13d7cb7d2ebda047fdfad
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
-rw-r--r-- | include/hardware/bt_sock.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hardware/bt_sock.h b/include/hardware/bt_sock.h index 1c937d8..69775e0 100644 --- a/include/hardware/bt_sock.h +++ b/include/hardware/bt_sock.h @@ -21,6 +21,7 @@ __BEGIN_DECLS #define BTSOCK_FLAG_ENCRYPT 1 #define BTSOCK_FLAG_AUTH (1 << 1) #define BTSOCK_FLAG_NO_SDP (1 << 2) +#define BTSOCK_FLAG_AUTH_MITM (1 << 3) typedef enum { BTSOCK_RFCOMM = 1, @@ -34,11 +35,11 @@ typedef struct { bt_bdaddr_t bd_addr; int channel; int status; - + // The writer must make writes using a buffer of this maximum size // to avoid loosing data. (L2CAP only) unsigned short max_tx_packet_size; - + // The reader must read using a buffer of at least this size to avoid // loosing data. (L2CAP only) unsigned short max_rx_packet_size; |