fix not setting encryption state in generic

pull/6188/head
paul-szczepanek-arm 2018-03-01 13:59:19 +00:00
parent d5b8439bae
commit bc11834125
1 changed files with 2 additions and 0 deletions

View File

@ -969,12 +969,14 @@ void GenericSecurityManager::on_link_encryption_result(
cb->encryption_requested = false; cb->encryption_requested = false;
cb->encryption_failed = false; cb->encryption_failed = false;
cb->encrypted = true;
} else if (result == link_encryption_t::ENCRYPTED_WITH_MITM) { } else if (result == link_encryption_t::ENCRYPTED_WITH_MITM) {
cb->encryption_requested = false; cb->encryption_requested = false;
cb->encryption_failed = false; cb->encryption_failed = false;
cb->authenticated = true; cb->authenticated = true;
cb->encrypted = true;
} else if (result == link_encryption_t::NOT_ENCRYPTED } else if (result == link_encryption_t::NOT_ENCRYPTED
&& cb->encryption_requested && cb->encryption_requested