mirror of https://github.com/ARMmbed/mbed-os.git
added slave security request
parent
3300395468
commit
d1c29faaa8
|
@ -284,6 +284,11 @@ public:
|
|||
*/
|
||||
virtual void on_valid_mic_timeout(connection_handle_t connection) = 0;
|
||||
|
||||
virtual void on_slave_security_request(
|
||||
connection_handle_t connection,
|
||||
AuthenticationMask authentication
|
||||
) = 0;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Encryption
|
||||
//
|
||||
|
@ -503,6 +508,11 @@ public:
|
|||
uint8_t max_encryption_key_size
|
||||
) = 0;
|
||||
|
||||
virtual ble_error_t slave_security_request(
|
||||
connection_handle_t connection,
|
||||
AuthenticationMask authentication
|
||||
) = 0;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Encryption
|
||||
//
|
||||
|
|
|
@ -590,7 +590,7 @@ public:
|
|||
if (entry->authenticated) {
|
||||
return BLE_ERROR_NONE;
|
||||
} else {
|
||||
entry->encryption_requested;
|
||||
entry->encryption_requested = true;
|
||||
return enable_encryption(connection);
|
||||
}
|
||||
} else {
|
||||
|
@ -750,6 +750,13 @@ public:
|
|||
_app_event_handler->validMicTimeout(connection);
|
||||
}
|
||||
|
||||
virtual void on_slave_security_request(
|
||||
connection_handle_t connection,
|
||||
AuthenticationMask authentication
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Encryption
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue