ua_accesscontrol_default.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
  2. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information. */
  3. #ifndef UA_ACCESSCONTROL_DEFAULT_H_
  4. #define UA_ACCESSCONTROL_DEFAULT_H_
  5. #include "ua_server.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. extern const UA_Boolean enableAnonymousLogin;
  10. extern const UA_Boolean enableUsernamePasswordLogin;
  11. extern const size_t usernamePasswordsSize;
  12. extern const UA_UsernamePasswordLogin *usernamePasswords;
  13. UA_EXPORT UA_StatusCode
  14. activateSession_default(const UA_NodeId *sessionId, const UA_ExtensionObject *userIdentityToken, void **sessionHandle);
  15. UA_EXPORT void
  16. closeSession_default(const UA_NodeId *sessionId, void *sessionHandle);
  17. UA_EXPORT UA_UInt32
  18. getUserRightsMask_default(const UA_NodeId *sessionId, void *sessionHandle, const UA_NodeId *nodeId);
  19. UA_EXPORT UA_Byte
  20. getUserAccessLevel_default(const UA_NodeId *sessionId, void *sessionHandle, const UA_NodeId *nodeId);
  21. UA_EXPORT UA_Boolean
  22. getUserExecutable_default(const UA_NodeId *sessionId, void *sessionHandle, const UA_NodeId *nodeId);
  23. UA_EXPORT UA_Boolean
  24. getUserExecutableOnObject_default(const UA_NodeId *sessionId, void *sessionHandle,
  25. const UA_NodeId *methodId, const UA_NodeId *objectId);
  26. UA_EXPORT UA_Boolean
  27. allowAddNode_default(const UA_NodeId *sessionId, void *sessionHandle, const UA_AddNodesItem *item);
  28. UA_EXPORT UA_Boolean
  29. allowAddReference_default(const UA_NodeId *sessionId, void *sessionHandle, const UA_AddReferencesItem *item);
  30. UA_EXPORT UA_Boolean
  31. allowDeleteNode_default(const UA_NodeId *sessionId, void *sessionHandle, const UA_DeleteNodesItem *item);
  32. UA_EXPORT UA_Boolean
  33. allowDeleteReference_default(const UA_NodeId *sessionId, void *sessionHandle, const UA_DeleteReferencesItem *item);
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /* UA_ACCESSCONTROL_DEFAULT_H_ */