BLE: Move SecurityDB related files into generic sources

pull/13475/head
Vincent Coubard 2020-08-21 17:03:54 +01:00
parent 381700a250
commit c2a09abee8
10 changed files with 9 additions and 12 deletions

View File

@ -27,7 +27,6 @@
#include "ble/common/ble/blecommon.h"
#include "ble/common/ble/BLETypes.h"
#include "ble/internal/SecurityDb.h"
#include "ble/internal/PalConnectionMonitor.h"
#include "ble/internal/PalSecurityManager.h"

View File

@ -18,7 +18,7 @@
#if BLE_SECURITY_DATABASE_FILESYSTEM
#include "ble/internal/FileSecurityDb.h"
#include "FileSecurityDb.h"
namespace ble {

View File

@ -23,7 +23,7 @@
#include <stdio.h>
#include "ble/internal/SecurityDb.h"
#include "SecurityDb.h"
namespace ble {

View File

@ -1195,7 +1195,6 @@ ble_error_t GattClient::write(
const uint8_t *value
) const
{
// verify that there is no other procedures going on this connection
if (_is_reseting || get_control_block(connection_handle)) {
return BLE_ERROR_INVALID_STATE;
}
@ -1218,7 +1217,6 @@ ble_error_t GattClient::write(
}
}
#endif // BLE_FEATURE_SIGNING
if (cmd == GATT_OP_WRITE_CMD) {
if (length > (uint16_t) (mtu - WRITE_HEADER_LENGTH)) {
return BLE_ERROR_PARAM_OUT_OF_RANGE;

View File

@ -18,7 +18,7 @@
#if BLE_SECURITY_DATABASE_KVSTORE
#include "ble/internal/KVStoreSecurityDb.h"
#include "KVStoreSecurityDb.h"
namespace ble {

View File

@ -24,7 +24,7 @@
#include "kvstore_global_api.h"
#include "mbed_error.h"
#include "ble/internal/SecurityDb.h"
#include "SecurityDb.h"
#define STR_EXPAND(tok) #tok
#define STR(tok) STR_EXPAND(tok)

View File

@ -19,7 +19,7 @@
#ifndef GENERIC_MEMORY_SECURITY_DB_H_
#define GENERIC_MEMORY_SECURITY_DB_H_
#include "ble/internal/SecurityDb.h"
#include "SecurityDb.h"
namespace ble {

View File

@ -20,9 +20,9 @@
#include "SecurityManagerImpl.h"
#include "ble/internal/PalSecurityManager.h"
#include "ble/internal/MemorySecurityDb.h"
#include "ble/internal/FileSecurityDb.h"
#include "ble/internal/KVStoreSecurityDb.h"
#include "MemorySecurityDb.h"
#include "FileSecurityDb.h"
#include "KVStoreSecurityDb.h"
using ble::advertising_peer_address_type_t;
using ble::AuthenticationMask;

View File

@ -29,7 +29,7 @@
#include "ble/common/ble/GapTypes.h"
#include "ble/common/ble/BLETypes.h"
#include "ble/internal/SecurityDb.h"
#include "SecurityDb.h"
#include "ble/internal/PalConnectionMonitor.h"
#include "ble/internal/PalSigningMonitor.h"
#include "ble/internal/PalSecurityManager.h"