Michael Zillgith
69b7b28e84
- HAL socket: added missing initialization of address structure
1 year ago
Federico Francescon
790e3e6714
fix: ssl renegotiation causing handshake failure ( #494 )
...
* feat: added semaphore around `TLSSocket_performHandshake`
* fix: improved error checking in TLS read and write
* removed useless semaphore for renegotiation lock
* added some tls debug and cleared the session renegotiation events
* using mbedtls API instead of using internals
* fixed deadlock situation with TLSSocket_read
* test fix sonarcloud minor notice
* still some sonarcloud minor things
---------
Co-authored-by: Federico Francescon <federico.francescon@higeco.com>
1 year ago
Michael Zillgith
e57dcc7214
- PAL: fixed wrong order of function arguments for fread and fwrite functions
2 years ago
Michael Zillgith
24babeb2f9
- GOOSE subscriber: fixed - possible heap corruption in parseAllData due to missing validity check in bit-string handling (LIB61850-402)
2 years ago
Michael Zillgith
6895d8214b
- MMS server: add function to ignore client requests (for test purposes)
3 years ago
Michael Zillgith
eba36fec65
- renamed TLSConfiguration_EventLevel to TLSEventLevel
3 years ago
Michael Zillgith
97923e7238
- updated required mbedtls version to 2.28.x
3 years ago
Michael Zillgith
21903710ad
- applied coding style
3 years ago
Federico Francescon
5a8d3effec
Added check for changed CRL on socket read/write. Added reset of renegotiation ssl cache on CRL add
3 years ago
Federico Francescon
e5c9f2e267
Fixing Security events messages to match IEC62351-100-3
3 years ago
Federico Pellegrin
9ddb10faea
tls: add method to reset used CRL (certificate revocation list)
...
Add a method to be able to reset the CRL, otherwise any previously
added CRL will stay there until the object is totally destroyed.
This proves to be needed for cases when we need to delete the
CRL (ie. it expired) during the lifetime of the server.
3 years ago
Michael Zillgith
3ad8da23b6
- fixed wrong number in TLS event code define (LIB61850_366)
3 years ago
Michael Zillgith
f61c58dd35
- added TLSConnection object to provide more context in TLS event callback (LIB61850-366)
3 years ago
Federico Pellegrin
4b06fd3b6e
tls: fix order of operations to copy peer certificate
...
The memcpy is done before assigning the length, so the length is not
set and is therefore either 0 (so no peer certificate will be available)
or a random number (that can lead to crashes) making the feature not work.
The MR simply copies first the length that will make the memcpy work.
3 years ago
Federico Pellegrin
d427179250
TLS: update CRL load time also when loading from file
...
Similarly as done when loading a CRL directly, this allows to
have the CA chain recalculated for ongoing connections also when
using CRLs from files.
3 years ago
Michael Zillgith
f778868fa0
- removed some VC++ warnings
3 years ago
Michael Zillgith
87b4ead369
- TLS: added TLS alert callbacks; support for session resumption with session IDs (LIB61850-339)
3 years ago
Michael Zillgith
795b6cfba8
- fixed path traversal vulnerability in MMS file services (LIB61850-357)
3 years ago
Michael Zillgith
9f09152d7c
- fixed - TLS: CRL is ignored
3 years ago
Michael Zillgith
b444fba88c
- added more debug output for linux socket driver
3 years ago
Michael Zillgith
377d708f4e
- enabled TLS 1.2 support in mbedtls configuration
3 years ago
Michael Zillgith
f0651adb36
- add GOOSE subscriber/Ethernet layer support to listen to specific multicast messages
4 years ago
Michael Zillgith
2adb4dec23
- BSD socket HAL: make server side connection sockets non-blocking (LIB61850-243)
4 years ago
Michael Zillgith
258651eca8
Merge branch 'v1.5_issue_243' into v1.5_develop
4 years ago
Michael Zillgith
d7b48a891e
- updated cmake minimum version requirement to 3.5.1
4 years ago
Michael Zillgith
8aa988068c
- MacOS thread layer: replaced semaphore by mutex
4 years ago
Michael Zillgith
d40b359292
- updated windows socket implementation; fixed Socket_checkAsyncConnectState function
4 years ago
Michael Zillgith
e0b5ed180f
Merge branch 'v1.5_tcp_perf_problem' into v1.5_issue_243
4 years ago
Michael Zillgith
09c77afee4
- BSD socket layer: fixed merging problem
4 years ago
Michael Zillgith
856800936f
- added missing typecast
4 years ago
Michael Zillgith
a02c63b1de
- undo merging problem in socket_win32.c
4 years ago
Michael Zillgith
76b4e9ed7b
- fixed typo in socket_win32.c
4 years ago
Michael Zillgith
00b42f969d
- Updated comments in hal_ethernet.h
4 years ago
Michael Zillgith
2e18175dac
Merge branch 'v1.5_feature_261' into v1.5
4 years ago
Michael Zillgith
dabff06fe8
- Linux socket layer: ignore EINTR signal during poll function
4 years ago
Michael Zillgith
6b9437b8c0
- unified HAL with lib60870 and libtase2 (LIB61850-261)
4 years ago
Michael Zillgith
f259096e12
- fixed problem with double free of TLS configuration structure (LIB61850-254)
4 years ago
Michael Zillgith
f0c1d6348e
- removed debug output
4 years ago
Michael Zillgith
6525a72930
- fixed TCP performance problem for Linux (LIB61850-243)
4 years ago
Michael Zillgith
40b8f99201
- Ethernet Socket (Windows): fixed bug and added workaround for problem
...
on Windows (most GOOSE/SV messages are not received when waiting with
WaitForMultipleObjects - observed with winpcap 4.1.3 and Windows 10
4 years ago
Michael Zillgith
c8078e3eb1
- fixed problem in BSD ethernet layer ( #328 )
...
- fixed bug in cmake file for BSD
4 years ago
Michael Zillgith
3514e08252
- Linux Ethernet: fixed uninitialized memory
4 years ago
Michael Zillgith
91bb816621
- updated macos semaphore handling
...
- updated CHANGELOG
4 years ago
Michael Zillgith
42bb617841
- HAL: implemented Hal_setTimeInNs for windows
5 years ago
Michael Zillgith
3984a47324
- Linux - Ethernet: replace IFF_PROMISC by IFF_ALLMULTI
5 years ago
Michael Zillgith
35713550fb
- updated windows socket code (should fix #301 )
5 years ago
Michael Zillgith
19f2cbf0e7
- CMake build: add new configuration option CONFIG_USE_EXTERNAL_MBEDTLS_DYNLIB to allow build using externally built mbedtls DLL/shared object
5 years ago
Michael Zillgith
4f0667b597
- removed some warnings and code cleanup
5 years ago
Michael Zillgith
5f2e14f712
Merge branch 'v1.5' of https://github.com/mz-automation/libiec61850 into v1.5
5 years ago
Michael Zillgith
945fe080f3
- removed some compiler warnings
5 years ago