1234567891011121314151617181920212223242526272829303132333435 |
- /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
- * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
- *
- * Copyright 2016-2017 (c) Julius Pfrommer, Fraunhofer IOSB
- * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
- */
- #ifndef UA_ACCESSCONTROL_DEFAULT_H_
- #define UA_ACCESSCONTROL_DEFAULT_H_
- #include "ua_server.h"
- #include "ua_plugin_access_control.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct {
- UA_String username;
- UA_String password;
- } UA_UsernamePasswordLogin;
- /* Default access control. The log-in can be anonymous or username-password. A
- * logged-in user has all access rights. */
- UA_EXPORT UA_AccessControl
- UA_AccessControl_default(UA_Boolean allowAnonymous,
- size_t usernamePasswordLoginSize,
- const UA_UsernamePasswordLogin *usernamePasswordLogin);
- #ifdef __cplusplus
- }
- #endif
- #endif /* UA_ACCESSCONTROL_DEFAULT_H_ */
|