open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
accesscontrol_default.h File Reference

Go to the source code of this file.

Data Structures

struct  UA_UsernamePasswordLogin
 

Typedefs

typedef UA_StatusCode(* UA_UsernamePasswordLoginCallback) (const UA_String *userName, const UA_ByteString *password, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, void **sessionContext, void *loginContext)
 

Functions

UA_EXPORT UA_StatusCode UA_AccessControl_default (UA_ServerConfig *config, UA_Boolean allowAnonymous, UA_CertificateVerification *verifyX509, const UA_ByteString *userTokenPolicyUri, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin)
 
UA_EXPORT UA_StatusCode UA_AccessControl_defaultWithLoginCallback (UA_ServerConfig *config, UA_Boolean allowAnonymous, UA_CertificateVerification *verifyX509, const UA_ByteString *userTokenPolicyUri, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, UA_UsernamePasswordLoginCallback loginCallback, void *loginContext)
 

Typedef Documentation

◆ UA_UsernamePasswordLoginCallback

typedef UA_StatusCode(* UA_UsernamePasswordLoginCallback) (const UA_String *userName, const UA_ByteString *password, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, void **sessionContext, void *loginContext)

Definition at line 21 of file accesscontrol_default.h.

Function Documentation

◆ UA_AccessControl_default()

UA_EXPORT UA_StatusCode UA_AccessControl_default ( UA_ServerConfig * config,
UA_Boolean allowAnonymous,
UA_CertificateVerification * verifyX509,
const UA_ByteString * userTokenPolicyUri,
size_t usernamePasswordLoginSize,
const UA_UsernamePasswordLogin * usernamePasswordLogin )

Default access control.

The log-in can be anonymous or username-password. A logged-in user has all access rights.

The certificate verification plugin lifecycle is moved to the access control system. So it is cleared up eventually together with the AccessControl.

◆ UA_AccessControl_defaultWithLoginCallback()

UA_EXPORT UA_StatusCode UA_AccessControl_defaultWithLoginCallback ( UA_ServerConfig * config,
UA_Boolean allowAnonymous,
UA_CertificateVerification * verifyX509,
const UA_ByteString * userTokenPolicyUri,
size_t usernamePasswordLoginSize,
const UA_UsernamePasswordLogin * usernamePasswordLogin,
UA_UsernamePasswordLoginCallback loginCallback,
void * loginContext )