Cynara check API returns either CYNARA_API_PERMISSION_DENIED (=1)
CYNARA_API_PERMISSION_ALLOWED (=2). This was badly cast in
SecurityManager::Cynara class to bool type, causing both return values
to be interpreted as true.
Change-Id: I5c96cfab5156e7aae81103cf8cf0d91d1b8293ab
switch (cause) {
case CYNARA_CALL_CAUSE_ANSWER:
LogDebug("Cynara cause: ANSWER: " << response);
- promise->set_value(response);
+ promise->set_value(response == CYNARA_API_ACCESS_ALLOWED);
break;
case CYNARA_CALL_CAUSE_CANCEL: