28#ifndef LIBS2OPC_SERVER_CONFIG_CUSTOM_H_
29#define LIBS2OPC_SERVER_CONFIG_CUSTOM_H_
90 const char* productUri,
91 const char* defaultAppName,
92 const char* defaultAppNameLocale,
112 const char* additionalAppNameLocale);
144 const char* serverKeyPath,
162 const unsigned char* serverCertificate,
164 const unsigned char* serverPrivateKey);
269 const char* clientAppUri,
270 const char* clientEndpointUrl);
SOPC_SecurityPolicy_URI
Enumerated values authorized for use with SOPC_EndpointConfig_AddSecurityConfig or SOPC_ClientConfigH...
Definition libs2opc_common_config.h:42
High level interface to configure an OPC UA server.
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetUserAuthorizationManager(SOPC_UserAuthorization_Manager *authorizationMgr)
Configures the server user authorization manager to check user access rights.
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetLocaleIds(size_t nbLocales, const char **localeIds)
Defines server locales ids supported from an array of locale strings.
SOPC_AddressSpace * SOPC_ServerConfigHelper_GetAddressSpace(void)
Gets the server configured address space. Note: it might be used after base NodeSet XML parsing to mo...
bool SOPC_EndpointConfig_AddClientToConnect(SOPC_Endpoint_Config *destEndpoint, const char *clientAppUri, const char *clientEndpointUrl)
Adds a reverse connection configuration for a client to the server endpoint configuration.
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetNamespaces(size_t nbNamespaces, const char **namespaces)
Server configuration without XML.
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetSoftwareBuildInfo(OpcUa_BuildInfo *buildInfo)
Changes the software build information to be displayed in the server build info node.
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetUserAuthenticationManager(SOPC_UserAuthentication_Manager *authenticationMgr)
Configures the server user authentication manager in charge to check user credentials.
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetKeyCertPairFromPath(const char *serverCertPath, const char *serverKeyPath, bool encrypted)
Sets asymmetrical certificate and key of server from file paths. Certificate files shall use DER form...
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetKeyCertPairFromBytes(size_t certificateNbBytes, const unsigned char *serverCertificate, size_t keyNbBytes, const unsigned char *serverPrivateKey)
Sets asymmetrical certificate and key of server from byte arrays. Certificate shall be in DER format,...
SOPC_ReturnStatus SOPC_SecurityConfig_SetSecurityModes(SOPC_SecurityConfig *destSecuConfig, SOPC_SecurityModeMask modes)
Sets a security mode mask to the security configuration.
SOPC_SecurityConfig * SOPC_EndpointConfig_AddSecurityConfig(SOPC_Endpoint_Config *destEndpoint, SOPC_SecurityPolicy_URI uri)
Adds a security policy to the endpoint configuration.
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetApplicationDescription(const char *applicationUri, const char *productUri, const char *defaultAppName, const char *defaultAppNameLocale, OpcUa_ApplicationType applicationType)
Defines server application description.
OpcUa_UserTokenPolicy SOPC_UserTokenPolicy
User token policy type to be used with SOPC_SecurityConfig_AddUserTokenPolicy.
Definition libs2opc_server_config_custom.h:237
SOPC_ReturnStatus SOPC_SecurityConfig_AddUserTokenPolicy(SOPC_SecurityConfig *destSecuConfig, const SOPC_UserTokenPolicy *userTokenPolicy)
Adds a user token policy to the security policy.
bool SOPC_EndpointConfig_StopListening(SOPC_Endpoint_Config *destEndpoint)
Configures the endpoint to not listen to incoming connections in case only reverse connections shall ...
SOPC_Endpoint_Config * SOPC_ServerConfigHelper_CreateEndpoint(const char *url, bool hasDiscovery)
Creates a new endpoint configuration in server to be completed by using the functions below (SOPC_End...
SOPC_SecurityModeMask
Enumerated mask values authorized for use with SOPC_SecurityConfig_SetSecurityModes....
Definition libs2opc_server_config_custom.h:213
@ SOPC_SecurityModeMask_SignAndEncrypt
Definition libs2opc_server_config_custom.h:217
@ SOPC_SecurityModeMask_None
Definition libs2opc_server_config_custom.h:214
@ SOPC_SecurityModeMask_Sign
Definition libs2opc_server_config_custom.h:215
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetAddressSpace(SOPC_AddressSpace *addressSpaceConfig)
Configures the server with the given address space.
SOPC_SecurityPolicy SOPC_SecurityConfig
The structure containing an endpoint security configuration.
Definition libs2opc_server_config_custom.h:189
SOPC_ReturnStatus SOPC_ServerConfigHelper_SetPKIprovider(SOPC_PKIProvider *pki)
Defines the PKI provider that will be in charge of validating certificates received by server.
SOPC_ReturnStatus SOPC_ServerConfigHelper_AddApplicationNameLocale(const char *additionalAppName, const char *additionalAppNameLocale)
Defines server additional application name with given locale id.
struct _SOPC_AddressSpace SOPC_AddressSpace
Definition sopc_address_space.h:68
enum _OpcUa_ApplicationType OpcUa_ApplicationType
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
Server configuration of a Endpoint connection listener.
Definition sopc_user_app_itf.h:140
The PKIProvider object for the Public Key Infrastructure.
Definition sopc_pki_struct_lib_internal.h:39
Endpoint security policy configuration.
Definition sopc_user_app_itf.h:102
Definition sopc_user_manager.h:149
Definition sopc_user_manager.h:161
Definition sopc_types.h:6403
Definition sopc_types.h:921