24 #ifndef ISO_CONNECTION_PARAMETERS_H_
25 #define ISO_CONNECTION_PARAMETERS_H_
27 #ifndef CONFIG_MMS_SUPPORT_TLS
28 #define CONFIG_MMS_SUPPORT_TLS 0
35 #include "tls_config.h"
85 LIB61850_API AcseAuthenticationParameter
145 #if (CONFIG_MMS_SUPPORT_TLS == 1)
146 TLSConfiguration tlsConfiguration;
182 LIB61850_API IsoConnectionParameters
LIB61850_API void IsoConnectionParameters_destroy(IsoConnectionParameters self)
Destroy an IsoConnectionParameters instance (FOR LIBRARY INTERNAL USE)
LIB61850_API void IsoConnectionParameters_setTcpParameters(IsoConnectionParameters self, const char *hostname, int tcpPort)
Set TCP parameters (FOR LIBRARY INTERNAL USE)
LIB61850_API void IsoConnectionParameters_setLocalAddresses(IsoConnectionParameters self, PSelector pSelector, SSelector sSelector, TSelector tSelector)
set local addresses for the lower layers
bool(* AcseAuthenticator)(void *parameter, AcseAuthenticationParameter authParameter, void **securityToken, IsoApplicationReference *appReference)
Callback function to authenticate a client.
Definition: iso_connection_parameters.h:109
LIB61850_API AcseAuthenticationParameter AcseAuthenticationParameter_create(void)
LIB61850_API void AcseAuthenticationParameter_setPassword(AcseAuthenticationParameter self, char *password)
LIB61850_API void AcseAuthenticationParameter_setAuthMechanism(AcseAuthenticationParameter self, AcseAuthenticationMechanism mechanism)
LIB61850_API void IsoConnectionParameters_setRemoteApTitle(IsoConnectionParameters self, const char *apTitle, int aeQualifier)
set the remote AP-Title and AE-Qualifier
LIB61850_API void IsoConnectionParameters_setAcseAuthenticationParameter(IsoConnectionParameters self, AcseAuthenticationParameter acseAuthParameter)
set the authentication parameter
LIB61850_API IsoConnectionParameters IsoConnectionParameters_create(void)
create a new IsoConnectionParameters instance (FOR LIBRARY INTERNAL USE)
LIB61850_API void IsoConnectionParameters_setRemoteAddresses(IsoConnectionParameters self, PSelector pSelector, SSelector sSelector, TSelector tSelector)
set remote addresses for the lower layers
AcseAuthenticationMechanism
authentication mechanism used by AcseAuthenticator
Definition: iso_connection_parameters.h:47
LIB61850_API void IsoConnectionParameters_setLocalApTitle(IsoConnectionParameters self, const char *apTitle, int aeQualifier)
set the local AP-Title and AE-Qualifier
LIB61850_API void IsoConnectionParameters_setLocalTcpParameters(IsoConnectionParameters self, const char *localIpAddress, int localTcpPort)
Set Local TCP parameters (FOR LIBRARY INTERNAL USE)
LIB61850_API void AcseAuthenticationParameter_destroy(AcseAuthenticationParameter self)
LIB61850_API void IsoConnectionParameters_setTlsConfiguration(IsoConnectionParameters self, TLSConfiguration tlsConfig)
@ ACSE_AUTH_NONE
Definition: iso_connection_parameters.h:49
@ ACSE_AUTH_PASSWORD
Definition: iso_connection_parameters.h:52
@ ACSE_AUTH_CERTIFICATE
Definition: iso_connection_parameters.h:55
@ ACSE_AUTH_TLS
Definition: iso_connection_parameters.h:58
ISO application reference (specifies an ISO application endpoint)
Definition: mms_common.h:169
OSI presentation (P) selector.
Definition: iso_connection_parameters.h:136
uint8_t size
Definition: iso_connection_parameters.h:137
OSI session selector.
Definition: iso_connection_parameters.h:126
uint8_t size
Definition: iso_connection_parameters.h:127
COTP T selector.
Definition: iso_connection_parameters.h:116
uint8_t size
Definition: iso_connection_parameters.h:117
Definition: iso_connection_parameters.h:65
struct sAcseAuthenticationParameter::@0::@2 certificate
int length
Definition: iso_connection_parameters.h:79
struct sAcseAuthenticationParameter::@0::@1 password
AcseAuthenticationMechanism mechanism
Definition: iso_connection_parameters.h:66
uint8_t * buf
Definition: iso_connection_parameters.h:78
int passwordLength
Definition: iso_connection_parameters.h:73
uint8_t * octetString
Definition: iso_connection_parameters.h:72
union sAcseAuthenticationParameter::@0 value
Definition: iso_connection_parameters.h:142
SSelector remoteSSelector
Definition: iso_connection_parameters.h:159
int tcpPort
Definition: iso_connection_parameters.h:150
PSelector localPSelector
Definition: iso_connection_parameters.h:166
SSelector localSSelector
Definition: iso_connection_parameters.h:167
AcseAuthenticationParameter acseAuthParameter
Definition: iso_connection_parameters.h:143
int remoteAEQualifier
Definition: iso_connection_parameters.h:157
TSelector localTSelector
Definition: iso_connection_parameters.h:168
TSelector remoteTSelector
Definition: iso_connection_parameters.h:160
const char * hostname
Definition: iso_connection_parameters.h:149
int localTcpPort
Definition: iso_connection_parameters.h:153
uint8_t remoteApTitle[10]
Definition: iso_connection_parameters.h:155
int remoteApTitleLen
Definition: iso_connection_parameters.h:156
const char * localIpAddress
Definition: iso_connection_parameters.h:152
uint8_t localApTitle[10]
Definition: iso_connection_parameters.h:163
int localAEQualifier
Definition: iso_connection_parameters.h:165
PSelector remotePSelector
Definition: iso_connection_parameters.h:158
int localApTitleLen
Definition: iso_connection_parameters.h:164