mirror of https://github.com/ARMmbed/mbed-os.git
authorisation for pairing
parent
0dcb9efb3e
commit
580bfdfcb2
|
@ -235,6 +235,11 @@ public:
|
|||
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
|
||||
}
|
||||
|
||||
virtual ble_error_t setPairingRequestAuthorisation(bool required = true) {
|
||||
(void) required;
|
||||
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
|
||||
}
|
||||
|
||||
virtual ble_error_t acceptPairingRequest(bool accept = true, bool authentication_required = true) {
|
||||
(void) authentication_required;
|
||||
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
|
||||
|
|
|
@ -114,9 +114,7 @@ public:
|
|||
|
||||
virtual ble_error_t set_security_settings(bool bondable = true,
|
||||
SecurityIOCapabilities_t iocaps = IO_CAPS_NONE,
|
||||
bool authentication_required = true,
|
||||
bool send_keypresses = false,
|
||||
bool pairing_authorisation_required = false) = 0;
|
||||
bool send_keypresses = false) = 0;
|
||||
|
||||
virtual ble_error_t set_oob_data_usage(Gap::Handle_t connectionHandle, bool useOOB, bool OOBProvidesMITM) = 0;
|
||||
|
||||
|
@ -137,6 +135,8 @@ public:
|
|||
|
||||
virtual ble_error_t request_authentication() = 0;
|
||||
|
||||
virtual ble_error_t set_pairing_request_authorisation(bool required = true) = 0;
|
||||
|
||||
/* MITM */
|
||||
|
||||
virtual ble_error_t confirmation_entered(connection_handle_t address, bool confirmation) = 0;
|
||||
|
|
Loading…
Reference in New Issue