mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Move SecurityDB related files into generic sources
parent
381700a250
commit
c2a09abee8
|
@ -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"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#if BLE_SECURITY_DATABASE_FILESYSTEM
|
||||
|
||||
#include "ble/internal/FileSecurityDb.h"
|
||||
#include "FileSecurityDb.h"
|
||||
|
||||
namespace ble {
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ble/internal/SecurityDb.h"
|
||||
#include "SecurityDb.h"
|
||||
|
||||
namespace ble {
|
||||
|
|
@ -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;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#if BLE_SECURITY_DATABASE_KVSTORE
|
||||
|
||||
#include "ble/internal/KVStoreSecurityDb.h"
|
||||
#include "KVStoreSecurityDb.h"
|
||||
|
||||
namespace ble {
|
||||
|
|
@ -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)
|
|
@ -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 {
|
||||
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue