return error codes

pull/6932/head
paul-szczepanek-arm 2018-05-18 13:59:30 +01:00
parent ace491d430
commit cd9f12ab45
1 changed files with 6 additions and 0 deletions

View File

@ -788,6 +788,8 @@ ble_error_t GenericSecurityManager::init_database(
}
ble_error_t GenericSecurityManager::init_resolving_list() {
if (!_db) return BLE_ERROR_INITIALIZATION_INCOMPLETE;
/* match the resolving list to the currently stored set of IRKs */
uint8_t resolving_list_capacity = _pal.read_resolving_list_capacity();
SecurityEntryIdentity_t* identity_list_p =
@ -803,7 +805,11 @@ ble_error_t GenericSecurityManager::init_resolving_list() {
mbed::callback(this, &GenericSecurityManager::on_identity_list_retrieved),
identity_list
);
} else {
return BLE_ERROR_NO_MEM;
}
return BLE_ERROR_NONE;
}
ble_error_t GenericSecurityManager::init_signing() {