S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
SOPC_UserAuthorization_Functions Struct Reference

#include <sopc_user_manager.h>

Data Fields

SOPC_UserAuthorization_Free_FuncpFuncFree
 Deallocation function, called upon SOPC_UserAuthorization_Manager destruction.
 
SOPC_UserAuthorization_AuthorizeOperation_FuncpFuncAuthorizeOperation
 Called to authorize a read or a write operation in the address space.
 

Field Documentation

◆ pFuncFree

SOPC_UserAuthorization_Free_Func* SOPC_UserAuthorization_Functions::pFuncFree

Deallocation function, called upon SOPC_UserAuthorization_Manager destruction.

This function can be the standard free function if nothing is stored in pData.

◆ pFuncAuthorizeOperation

SOPC_UserAuthorization_AuthorizeOperation_Func* SOPC_UserAuthorization_Functions::pFuncAuthorizeOperation

Called to authorize a read or a write operation in the address space.

Warning
This callback should not block the thread that calls it, and shall return immediately. It also needs to be thread safe.
Parameters
authorizationManagerThe SOPC_UserAuthorization_Manager instance.
operationTypeSet to SOPC_USER_AUTHORIZATION_OPERATION_READ for a read operation, or SOPC_USER_AUTHORIZATION_OPERATION_WRITE for a write operation.
nodeIdThe operation reads/write this NodeId.
attributeIdThe operation reads/write this attribute.
pUserThe connected SOPC_User which attempts the operation.
pbOperationAuthorizedA valid pointer to the uninitialized result of the operation. The callback shall set it to false when the operation is refused.
Returns
SOPC_STATUS_OK when pbUserAuthorized was set.

The documentation for this struct was generated from the following file: