Skip to content
Snippets Groups Projects
Commit 997474b3 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account manager: log reason of certificate validation failure

Change-Id: I32ebd28fca7c3f6cafcf1ab6e1523c5eb9d5510e
parent 14deb3d3
Branches
No related tags found
No related merge requests found
......@@ -111,8 +111,9 @@ AccountManager::useIdentity(
// match certificate chain
auto contactList = std::make_unique<ContactList>(accountCertificate, path_, onChange);
if (not contactList->isValidAccountDevice(*identity.second)) {
JAMI_ERR("[Auth] can't use identity: device certificate chain can't be verified");
auto result = contactList->isValidAccountDevice(*identity.second);
if (not result) {
JAMI_ERR("[Auth] can't use identity: device certificate chain can't be verified: %s", result.toString().c_str());
return nullptr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment