mikroSDK Reference Manual
modbus_server_security.h
Go to the documentation of this file.
1
31#ifndef _MODBUS_SERVER_SECURITY_H
32#define _MODBUS_SERVER_SECURITY_H
33
34//Dependencies
35#include "core/net.h"
37
38//TLS supported?
39#if (MODBUS_SERVER_TLS_SUPPORT == ENABLED)
40 #include "core/crypto.h"
41 #include "encoding/asn1.h"
42 #include "encoding/oid.h"
43 #include "pkix/x509_cert_parse.h"
44#endif
45
46//C++ guard
47#ifdef __cplusplus
48extern "C" {
49#endif
50
51//Modbus/TCP server related functions
52error_t modbusServerParseRoleOid(ModbusClientConnection *connection,
53 const uint8_t *data, size_t length);
54
55error_t modbusServerOpenSecureConnection(ModbusServerContext *context,
56 ModbusClientConnection *connection);
57
58error_t modbusServerEstablishSecureConnection(ModbusClientConnection *connection);
59
60//C++ guard
61#ifdef __cplusplus
62}
63#endif
64
65#endif
error_t
Error codes.
Definition error.h:43
Modbus/TCP server.
TCP/IP stack core.