ua_accesscontrol_default.h 969 B

1234567891011121314151617181920212223242526272829303132333435
  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) Julius Pfrommer, Fraunhofer IOSB
  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. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. typedef struct {
  15. UA_String username;
  16. UA_String password;
  17. } UA_UsernamePasswordLogin;
  18. /* Default access control. The log-in can be anonymous or username-password. A
  19. * logged-in user has all access rights. */
  20. UA_EXPORT UA_AccessControl
  21. UA_AccessControl_default(UA_Boolean allowAnonymous,
  22. size_t usernamePasswordLoginSize,
  23. const UA_UsernamePasswordLogin *usernamePasswordLogin);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* UA_ACCESSCONTROL_DEFAULT_H_ */