mirror of https://github.com/ARMmbed/mbed-os.git
class in header
parent
a2484b63b0
commit
70067105d6
|
@ -154,6 +154,17 @@ private:
|
|||
|
||||
::BLE::InstanceID_t instanceID;
|
||||
mutable pal::SimpleEventQueue _event_queue;
|
||||
|
||||
class SigningEventMonitorProxy : public pal::SigningEventMonitor {
|
||||
public:
|
||||
SigningEventMonitorProxy(BLE &ble) : _ble(ble) { }
|
||||
virtual void set_signing_event_handler(pal::SigningEventMonitor::EventHandler *handler) {
|
||||
_ble.getGattClient().set_signing_event_handler(handler);
|
||||
_ble.getGattServer().set_signing_event_handler(handler);
|
||||
}
|
||||
private:
|
||||
BLE &_ble;
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace cordio
|
||||
|
|
|
@ -209,17 +209,6 @@ SecurityManager& BLE::getSecurityManager()
|
|||
|
||||
const SecurityManager& BLE::getSecurityManager() const
|
||||
{
|
||||
class SigningEventMonitorProxy : public pal::SigningEventMonitor {
|
||||
public:
|
||||
SigningEventMonitorProxy(BLE &ble) : _ble(ble) { }
|
||||
virtual void set_signing_event_handler(pal::SigningEventMonitor::EventHandler *handler) {
|
||||
_ble.getGattClient().set_signing_event_handler(handler);
|
||||
_ble.getGattServer().set_signing_event_handler(handler);
|
||||
}
|
||||
private:
|
||||
BLE &_ble;
|
||||
};
|
||||
|
||||
static pal::MemorySecurityDb m_db;
|
||||
pal::vendor::cordio::CordioSecurityManager &m_pal = pal::vendor::cordio::CordioSecurityManager::get_security_manager();
|
||||
|
||||
|
|
Loading…
Reference in New Issue