ua_accesscontrol_default.h 941 B

12345678910111213141516171819202122232425262728293031
  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 "ua_server.h"
  10. #include "ua_plugin_access_control.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_AccessControl
  19. UA_AccessControl_default(UA_Boolean allowAnonymous,
  20. size_t usernamePasswordLoginSize,
  21. const UA_UsernamePasswordLogin *usernamePasswordLogin);
  22. _UA_END_DECLS
  23. #endif /* UA_ACCESSCONTROL_DEFAULT_H_ */