Modbus/TCP security layer. More...
#include "core/net.h"#include "modbus/modbus_server.h"#include "core/crypto.h"#include "encoding/asn1.h"#include "encoding/oid.h"#include "pkix/x509_cert_parse.h"#include "pkix/x509_cert_ext_parse.h"Go to the source code of this file.
Functions | |
| error_t | modbusServerParseRoleOid (ModbusClientConnection *connection, const uint8_t *data, size_t length) |
| Parse client role OID. More... | |
| error_t | modbusServerOpenSecureConnection (ModbusServerContext *context, ModbusClientConnection *connection) |
| Open secure connection. More... | |
| error_t | modbusServerEstablishSecureConnection (ModbusClientConnection *connection) |
| Establish secure connection. More... | |
Detailed Description
Modbus/TCP security layer.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.5.4
Definition in file modbus_server_security.h.
Function Documentation
◆ modbusServerEstablishSecureConnection()
| error_t modbusServerEstablishSecureConnection | ( | ModbusClientConnection * | connection | ) |
Establish secure connection.
- Parameters
-
[in] connection Pointer to the client connection
- Returns
- Error code
Definition at line 241 of file modbus_server_security.c.
◆ modbusServerOpenSecureConnection()
| error_t modbusServerOpenSecureConnection | ( | ModbusServerContext * | context, |
| ModbusClientConnection * | connection | ||
| ) |
Open secure connection.
- Parameters
-
[in] context Pointer to the Modbus/TCP server context [in] connection Pointer to the client connection
- Returns
- Error code
Definition at line 159 of file modbus_server_security.c.
◆ modbusServerParseRoleOid()
| error_t modbusServerParseRoleOid | ( | ModbusClientConnection * | connection, |
| const uint8_t * | data, | ||
| size_t | length | ||
| ) |
Parse client role OID.
- Parameters
-
[in] connection Pointer to the client connection [in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure
- Returns
- Error code
Definition at line 119 of file modbus_server_security.c.
