mirror of https://github.com/ARMmbed/mbed-os.git
invalid mic event
parent
cf6bf9968f
commit
b25c2330c1
|
@ -514,6 +514,12 @@ public:
|
||||||
connection_handle_t connection
|
connection_handle_t connection
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/** @copydoc ble::pal::SecurityManager::on_invalid_mic
|
||||||
|
*/
|
||||||
|
virtual void on_invalid_mic(
|
||||||
|
connection_handle_t connection
|
||||||
|
);
|
||||||
|
|
||||||
/** @copydoc ble::pal::SecurityManager::on_slave_security_request
|
/** @copydoc ble::pal::SecurityManager::on_slave_security_request
|
||||||
*/
|
*/
|
||||||
virtual void on_slave_security_request(
|
virtual void on_slave_security_request(
|
||||||
|
|
|
@ -280,6 +280,16 @@ public:
|
||||||
connection_handle_t connection
|
connection_handle_t connection
|
||||||
) = 0;
|
) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicate that the MIC verification has failed. This could
|
||||||
|
* be due to an invalid CSRK key.
|
||||||
|
*
|
||||||
|
* @param[in] connection connection handle
|
||||||
|
*/
|
||||||
|
virtual void on_invalid_mic(
|
||||||
|
connection_handle_t connection
|
||||||
|
) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ask the stack to evaluate the security request received from the slave.
|
* Ask the stack to evaluate the security request received from the slave.
|
||||||
* This might result in the stack enabling encryption, or pairing/re-pairing.
|
* This might result in the stack enabling encryption, or pairing/re-pairing.
|
||||||
|
|
|
@ -909,6 +909,11 @@ void GenericSecurityManager::on_valid_mic_timeout(connection_handle_t connection
|
||||||
(void)connection;
|
(void)connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GenericSecurityManager::on_invalid_mic(connection_handle_t connection) {
|
||||||
|
(void)connection;
|
||||||
|
/* TODO: count and re-pair when threshold reached */
|
||||||
|
}
|
||||||
|
|
||||||
void GenericSecurityManager::on_slave_security_request(
|
void GenericSecurityManager::on_slave_security_request(
|
||||||
connection_handle_t connection,
|
connection_handle_t connection,
|
||||||
AuthenticationMask authentication
|
AuthenticationMask authentication
|
||||||
|
|
Loading…
Reference in New Issue