accesscontrol_default.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. *
  4. * Copyright 2016-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
  5. * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
  6. */
  7. #ifndef UA_ACCESSCONTROL_DEFAULT_H_
  8. #define UA_ACCESSCONTROL_DEFAULT_H_
  9. #include <open62541/plugin/accesscontrol.h>
  10. #include <open62541/server.h>
  11. _UA_BEGIN_DECLS
  12. typedef struct {
  13. UA_String username;
  14. UA_String password;
  15. } UA_UsernamePasswordLogin;
  16. /* Default access control. The log-in can be anonymous or username-password. A
  17. * logged-in user has all access rights. */
  18. UA_EXPORT UA_StatusCode
  19. UA_AccessControl_default(UA_ServerConfig *config, UA_Boolean allowAnonymous,
  20. const UA_ByteString *userTokenPolicyUri,
  21. size_t usernamePasswordLoginSize,
  22. const UA_UsernamePasswordLogin *usernamePasswordLogin);
  23. _UA_END_DECLS
  24. #endif /* UA_ACCESSCONTROL_DEFAULT_H_ */