Asserting roles support functions.
More...
|
|
typedef struct oc_role_t | oc_role_t |
| |
Asserting roles support functions.
◆ oc_assert_all_roles()
assert all the roles for a specific endpoint
- Parameters
-
| endpoint | identifying the connection |
| handler | the response handler |
| user_data | the user data to be conveyed to the response handler |
◆ oc_assert_role()
assert the specific role
- Parameters
-
| role | the role (cannot be NULL) |
| authority | the authority |
| endpoint | endpoint identifying the connection (cannot be NULL) |
| handler | the response handler (cannot be NULL) |
| user_data | the user data to be conveyed to the response handler |
- Returns
- true request was initialized and sent
-
false otherwise
◆ oc_auto_assert_roles()
| void oc_auto_assert_roles |
( |
bool |
auto_assert | ) |
|
set automatic role assertion (e.g.
for all endpoints with a connection)
- Parameters
-
| auto_assert | set to true to enable automatic role assertion |
◆ oc_get_all_roles()
| oc_role_t* oc_get_all_roles |
( |
void |
| ) |
|
retrieve all roles
- Returns
- oc_role_t*