10#ifndef UA_SERVER_CONFIG_DEFAULT_H_
11#define UA_SERVER_CONFIG_DEFAULT_H_
65#ifdef UA_ENABLE_ENCRYPTION
75 size_t issuerListSize,
77 size_t revocationListSize);
85 return UA_ServerConfig_setMinimal(config, 4840, NULL);
112#ifdef UA_ENABLE_WEBSOCKET_SERVER
140#ifdef UA_ENABLE_ENCRYPTION
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
UA_EXPORT UA_StatusCode UA_ServerConfig_addEndpoint(UA_ServerConfig *config, const UA_String securityPolicyUri, UA_MessageSecurityMode securityMode)
Adds an endpoint for the given security policy and mode.
UA_EXPORT UA_StatusCode UA_ServerConfig_addNetworkLayerTCP(UA_ServerConfig *conf, UA_UInt16 portNumber, UA_UInt32 sendBufferSize, UA_UInt32 recvBufferSize)
Adds a TCP network layer with custom buffer sizes.
_UA_BEGIN_DECLS UA_Server * UA_Server_new(void)
This work is licensed under a Creative Commons CCZero 1.0 Universal License.
UA_EXPORT UA_StatusCode UA_ServerConfig_setDefaultWithSecurityPolicies(UA_ServerConfig *conf, UA_UInt16 portNumber, const UA_ByteString *certificate, const UA_ByteString *privateKey, const UA_ByteString *trustList, size_t trustListSize, const UA_ByteString *issuerList, size_t issuerListSize, const UA_ByteString *revocationList, size_t revocationListSize)
const UA_ConnectionConfig UA_ConnectionConfig_default
Default Connection.
UA_EXPORT UA_StatusCode UA_ServerConfig_addSecurityPolicyBasic256Sha256(UA_ServerConfig *config, const UA_ByteString *certificate, const UA_ByteString *privateKey)
Adds the security policy SecurityPolicy#Basic256Sha256 to the server.
UA_EXPORT UA_StatusCode UA_ServerConfig_addSecurityPolicyNone(UA_ServerConfig *config, const UA_ByteString *certificate)
Adds the security policy SecurityPolicy#None to the server.
UA_EXPORT UA_StatusCode UA_ServerConfig_addAllEndpoints(UA_ServerConfig *config)
Adds endpoints for all configured security policies in each mode.
UA_EXPORT UA_StatusCode UA_ServerConfig_setBasics(UA_ServerConfig *conf)
Creates a new server config with no network layer and no endpoints.
UA_EXPORT UA_StatusCode UA_ServerConfig_addSecurityPolicyAes128Sha256RsaOaep(UA_ServerConfig *config, const UA_ByteString *certificate, const UA_ByteString *privateKey)
Adds the security policy SecurityPolicy#Aes128Sha256RsaOaep to the server.
UA_EXPORT UA_StatusCode UA_ServerConfig_setMinimalCustomBuffer(UA_ServerConfig *config, UA_UInt16 portNumber, const UA_ByteString *certificate, UA_UInt32 sendBufferSize, UA_UInt32 recvBufferSize)
Default Server Config.
UA_EXPORT UA_StatusCode UA_ServerConfig_addSecurityPolicyBasic256(UA_ServerConfig *config, const UA_ByteString *certificate, const UA_ByteString *privateKey)
Adds the security policy SecurityPolicy#Basic256 to the server.
UA_EXPORT UA_StatusCode UA_ServerConfig_addSecurityPolicyBasic128Rsa15(UA_ServerConfig *config, const UA_ByteString *certificate, const UA_ByteString *privateKey)
Adds the security policy SecurityPolicy#Basic128Rsa15 to the server.
UA_EXPORT UA_StatusCode UA_ServerConfig_addAllSecurityPolicies(UA_ServerConfig *config, const UA_ByteString *certificate, const UA_ByteString *privateKey)
Adds all supported security policies and sets up certificate validation procedures.