Bluetooth: Move security levels to conn.h
For now this is used only in conn.h. Allows to reduce includes dependencies. Change-Id: I60dbe588e711fa0332049cbea43ffb6838a58823 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
29faed4aa8
commit
faec70c367
2 changed files with 10 additions and 11 deletions
|
@ -135,16 +135,6 @@ int bt_start_scanning(bt_scan_filter_dup_t filter, bt_le_scan_cb_t cb);
|
|||
*/
|
||||
int bt_stop_scanning(void);
|
||||
|
||||
/** Security level. */
|
||||
typedef enum {
|
||||
BT_SECURITY_LOW, /** No encryption and no authentication. */
|
||||
BT_SECURITY_MEDIUM, /** encryption and no authentication (no MITM). */
|
||||
BT_SECURITY_HIGH, /** encryption and authentication (MITM). */
|
||||
BT_SECURITY_FIPS, /** Authenticated LE Secure Connections and
|
||||
* encryption.
|
||||
*/
|
||||
} bt_security_t;
|
||||
|
||||
/** @def BT_ADDR_STR_LEN
|
||||
*
|
||||
* @brief Recommended length of user string buffer for Bluetooth address
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/hci.h>
|
||||
|
||||
/** Opaque type representing a connection to a remote device */
|
||||
|
@ -103,6 +102,16 @@ int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason);
|
|||
*/
|
||||
struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer);
|
||||
|
||||
/** Security level. */
|
||||
typedef enum {
|
||||
BT_SECURITY_LOW, /** No encryption and no authentication. */
|
||||
BT_SECURITY_MEDIUM, /** encryption and no authentication (no MITM). */
|
||||
BT_SECURITY_HIGH, /** encryption and authentication (MITM). */
|
||||
BT_SECURITY_FIPS, /** Authenticated LE Secure Connections and
|
||||
* encryption.
|
||||
*/
|
||||
} bt_security_t;
|
||||
|
||||
/** @brief Set security level for a connection.
|
||||
*
|
||||
* This function enable security (encryption) for a connection. If device is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue