S2OPC OPCUA Toolkit
|
#include <stdbool.h>
#include <stdint.h>
#include "sopc_builtintypes.h"
#include "sopc_crypto_decl.h"
#include "sopc_event_handler.h"
#include "sopc_key_sets.h"
#include "sopc_secret_buffer.h"
#include "sopc_singly_linked_list.h"
#include "sopc_time_reference.h"
#include "sopc_toolkit_config_constants.h"
#include "sopc_types.h"
Go to the source code of this file.
Data Structures | |
struct | SOPC_SentRequestMsg_Context |
Structure containing the context of a sent request message at SC layer level. More... | |
struct | SOPC_SecureConnection_ChunkMgrCtx |
struct | SOPC_SecureConnection_TcpProperties |
struct | SOPC_SecureConnection_TcpOpnReqAsymmSecu |
struct | SOPC_SecureConnection_TcpSequenceProperties |
struct | SOPC_SecureConnection_SecurityToken |
struct | SOPC_SecureConnection |
struct | SOPC_SecureListener |
Typedefs | |
typedef struct SOPC_SecureConnection_ChunkMgrCtx | SOPC_SecureConnection_ChunkMgrCtx |
typedef struct SOPC_SecureConnection_TcpProperties | SOPC_SecureConnection_TcpProperties |
typedef struct SOPC_SecureConnection_TcpOpnReqAsymmSecu | SOPC_SecureConnection_TcpAsymmSecu |
typedef struct SOPC_SecureConnection_TcpSequenceProperties | SOPC_SecureConnection_TcpSequenceProperties |
typedef struct SOPC_SecureConnection_SecurityToken | SOPC_SecureConnection_SecurityToken |
typedef struct SOPC_SecureConnection | SOPC_SecureConnection |
typedef struct SOPC_SecureListener | SOPC_SecureListener |
typedef void | SC_ApplyToConnection(SOPC_SecureConnection *conn, uint32_t connIdx, uintptr_t param, uintptr_t auxParam) |
Functions | |
void | SOPC_SecureChannelsInternalContext_Initialize (SOPC_SetListenerFunc *setSocketsListener) |
Initialize the array of secure listeners/connections. | |
void | SOPC_SecureChannelsInternalContext_Clear (void) |
Clear the array of secure listeners/connections. | |
SOPC_SecureConnection * | SC_GetConnection (uint32_t connectionIdx) |
const SOPC_CertificateList * | SC_OwnCertificate (SOPC_SecureConnection *conn) |
const SOPC_CertificateList * | SC_PeerCertificate (SOPC_SecureConnection *conn) |
void | SC_ApplyToAllSCs (SC_ApplyToConnection *applyToConnection, uintptr_t param, uintptr_t auxParam) |
uint32_t | SOPC_ScInternalContext_GetNbIntermediateInputChunks (SOPC_SecureConnection_ChunkMgrCtx *chunkCtx) |
Retrieve the number of intermediate chunks already received. | |
bool | SOPC_ScInternalContext_AddIntermediateInputChunk (SOPC_SecureConnection_TcpProperties *tcpProperties, SOPC_SecureConnection_ChunkMgrCtx *chunkCtx, SOPC_Buffer *intermediateChunk) |
Add an intermediate chunk received into message chunks. | |
void | SOPC_ScInternalContext_ClearIntermediateInputChunks (SOPC_SecureConnection_ChunkMgrCtx *chunkCtx) |
Clear the list of intermediate chunks received (should be called directly only in case of abort chunk received) | |
void | SOPC_ScInternalContext_ClearCurrentInputChunkContext (SOPC_SecureConnection_ChunkMgrCtx *chunkCtx) |
Clear the current chunk context but not the intermediate chunks context. | |
void | SOPC_ScInternalContext_ClearInputChunksContext (SOPC_SecureConnection_ChunkMgrCtx *chunkCtx) |
Clear the current chunk and intermediate chunks context. | |
void | SOPC_SecureChannels_OnInternalEvent (SOPC_EventHandler *handler, int32_t event, uint32_t id, uintptr_t params, uintptr_t auxParam) |
void | SOPC_SecureChannels_OnSocketsEvent (SOPC_EventHandler *handler, int32_t event, uint32_t id, uintptr_t params, uintptr_t auxParam) |
void | SOPC_SecureChannels_OnTimerEvent (SOPC_EventHandler *handler, int32_t event, uint32_t id, uintptr_t params, uintptr_t auxParam) |
void | SOPC_SecureChannels_OnInputEvent (SOPC_EventHandler *handler, int32_t event, uint32_t id, uintptr_t params, uintptr_t auxParam) |
Variables | |
SOPC_SecureListener | secureListenersArray [SOPC_MAX_ENDPOINT_DESCRIPTION_CONFIGURATIONS *2+1] |
Array containing all listeners that can be used for server endpoints and client reverse endpoints. | |
SOPC_SecureConnection | secureConnectionsArray [SOPC_MAX_SECURE_CONNECTIONS_PLUS_BUFFERED+1] |
Array containing all connections that can be used. | |
uint32_t | lastSecureConnectionArrayIdx |
SOPC_Looper * | secureChannelsLooper |
SOPC_EventHandler * | secureChannelsInputEventHandler |
SOPC_EventHandler * | secureChannelsInternalEventHandler |
SOPC_EventHandler * | secureChannelsTimerEventHandler |
SOPC_EventHandler * | secureChannelsEventHandler |
typedef struct SOPC_SecureConnection_ChunkMgrCtx SOPC_SecureConnection_ChunkMgrCtx |
typedef struct SOPC_SecureConnection_TcpProperties SOPC_SecureConnection_TcpProperties |
typedef struct SOPC_SecureConnection_TcpSequenceProperties SOPC_SecureConnection_TcpSequenceProperties |
typedef struct SOPC_SecureConnection_SecurityToken SOPC_SecureConnection_SecurityToken |
typedef struct SOPC_SecureConnection SOPC_SecureConnection |
typedef struct SOPC_SecureListener SOPC_SecureListener |
typedef void SC_ApplyToConnection(SOPC_SecureConnection *conn, uint32_t connIdx, uintptr_t param, uintptr_t auxParam) |
enum SOPC_Msg_Type |
enum SOPC_Msg_IsFinal |
void SOPC_SecureChannelsInternalContext_Initialize | ( | SOPC_SetListenerFunc * | setSocketsListener | ) |
Initialize the array of secure listeners/connections.
void SOPC_SecureChannelsInternalContext_Clear | ( | void | ) |
Clear the array of secure listeners/connections.
SOPC_SecureConnection * SC_GetConnection | ( | uint32_t | connectionIdx | ) |
const SOPC_CertificateList * SC_OwnCertificate | ( | SOPC_SecureConnection * | conn | ) |
const SOPC_CertificateList * SC_PeerCertificate | ( | SOPC_SecureConnection * | conn | ) |
void SC_ApplyToAllSCs | ( | SC_ApplyToConnection * | applyToConnection, |
uintptr_t | param, | ||
uintptr_t | auxParam ) |
uint32_t SOPC_ScInternalContext_GetNbIntermediateInputChunks | ( | SOPC_SecureConnection_ChunkMgrCtx * | chunkCtx | ) |
Retrieve the number of intermediate chunks already received.
bool SOPC_ScInternalContext_AddIntermediateInputChunk | ( | SOPC_SecureConnection_TcpProperties * | tcpProperties, |
SOPC_SecureConnection_ChunkMgrCtx * | chunkCtx, | ||
SOPC_Buffer * | intermediateChunk ) |
Add an intermediate chunk received into message chunks.
void SOPC_ScInternalContext_ClearIntermediateInputChunks | ( | SOPC_SecureConnection_ChunkMgrCtx * | chunkCtx | ) |
Clear the list of intermediate chunks received (should be called directly only in case of abort chunk received)
void SOPC_ScInternalContext_ClearCurrentInputChunkContext | ( | SOPC_SecureConnection_ChunkMgrCtx * | chunkCtx | ) |
Clear the current chunk context but not the intermediate chunks context.
void SOPC_ScInternalContext_ClearInputChunksContext | ( | SOPC_SecureConnection_ChunkMgrCtx * | chunkCtx | ) |
Clear the current chunk and intermediate chunks context.
void SOPC_SecureChannels_OnInternalEvent | ( | SOPC_EventHandler * | handler, |
int32_t | event, | ||
uint32_t | id, | ||
uintptr_t | params, | ||
uintptr_t | auxParam ) |
void SOPC_SecureChannels_OnSocketsEvent | ( | SOPC_EventHandler * | handler, |
int32_t | event, | ||
uint32_t | id, | ||
uintptr_t | params, | ||
uintptr_t | auxParam ) |
void SOPC_SecureChannels_OnTimerEvent | ( | SOPC_EventHandler * | handler, |
int32_t | event, | ||
uint32_t | id, | ||
uintptr_t | params, | ||
uintptr_t | auxParam ) |
void SOPC_SecureChannels_OnInputEvent | ( | SOPC_EventHandler * | handler, |
int32_t | event, | ||
uint32_t | id, | ||
uintptr_t | params, | ||
uintptr_t | auxParam ) |
|
extern |
Array containing all listeners that can be used for server endpoints and client reverse endpoints.
|
extern |
Array containing all connections that can be used.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |