mirror of https://github.com/ARMmbed/mbed-os.git
moved signing to matching positin in file
parent
b20a49f7a3
commit
4820d64b9a
|
|
@ -277,25 +277,6 @@ public:
|
|||
return pal.get_secure_connections_support(*enabled);
|
||||
}
|
||||
|
||||
virtual ble_error_t enableSigning(connection_handle_t connection, bool enabled = true) {
|
||||
SecurityEntry_t *entry = db.get_entry(connection);
|
||||
if (!entry) {
|
||||
return BLE_ERROR_INVALID_PARAM;
|
||||
}
|
||||
if (!entry->signing_key && enabled) {
|
||||
KeyDistribution distribution = key_distribution;
|
||||
distribution.set_signing(enabled);
|
||||
return pal.send_pairing_request(
|
||||
connection,
|
||||
entry->oob,
|
||||
authentication,
|
||||
distribution,
|
||||
distribution
|
||||
);
|
||||
}
|
||||
return BLE_ERROR_NONE;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Security settings
|
||||
//
|
||||
|
|
@ -342,6 +323,25 @@ public:
|
|||
return BLE_ERROR_NONE;
|
||||
}
|
||||
|
||||
virtual ble_error_t enableSigning(connection_handle_t connection, bool enabled = true) {
|
||||
SecurityEntry_t *entry = db.get_entry(connection);
|
||||
if (!entry) {
|
||||
return BLE_ERROR_INVALID_PARAM;
|
||||
}
|
||||
if (!entry->signing_key && enabled) {
|
||||
KeyDistribution distribution = key_distribution;
|
||||
distribution.set_signing(enabled);
|
||||
return pal.send_pairing_request(
|
||||
connection,
|
||||
entry->oob,
|
||||
authentication,
|
||||
distribution,
|
||||
distribution
|
||||
);
|
||||
}
|
||||
return BLE_ERROR_NONE;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Encryption
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue